On 09.11.2011 11:41, Andreas Ploetzeneder wrote:
> Hi,
> i call:
>
> var audioPlayer = new SystemSound(new
> NSURL(NSBundle.MainBundle.Bundleurl+"CLICK18C.caf");
>
> if (audioPlayer != null)
>
> {
>
> audioPlayer.PlaySystemSound();
>
> }
>
> The source worked before,...now i Get System.InvalidOpetaionException Could
> not create system sound ID for url file://.....
The error message is usually including the cause of the error...
Please copy&paste these messages next time.
> The file is a caf,
> the filename is case sensitivly correct
> the file is embedded as Resource...
The file must not be embedded as "Resource". Its build action must be
set to "Content".
Robert
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch