Re: AVAudioPlayer crash
Re: AVAudioPlayer crash
- Subject: Re: AVAudioPlayer crash
- From: Hamish Allan <email@hidden>
- Date: Thu, 19 Feb 2009 15:55:38 +0000
Calling a non-existent selector on AVAudioPlayer is definitely not the
proper way to this.
Does the error message not tell you what the problem is?
Hamish
On Thu, Feb 19, 2009 at 3:50 PM, <email@hidden> wrote:
> The following code sequence crashes with a "[NSObject doesNotRecognizeSelector]" message.
>
> NSString *path = [[NSBundle mainBundle] pathForResource:@"chainsa" ofType:@"caf"];
> NSURL *chainSawURL = [NSURL fileURLWithPath:path];
> _avChainSawSound = [[AVAudioPlayer alloc] initWithContentsOfURL:chainSawURL];
>
> Any clues why? Or is AVAudioPlayer not the proper way to do this?
>
> ->Ken
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden