Re: AVAudioPlayer crash
Re: AVAudioPlayer crash
- Subject: Re: AVAudioPlayer crash
- From: email@hidden
- Date: Thu, 19 Feb 2009 11:31:34 -0500 (EST)
Hey I'm just trying to allocate and intialize the object using the existing api when it crashes...
-----Original Message-----
>From: Hamish Allan <email@hidden>
>Sent: Feb 19, 2009 10:55 AM
>To: email@hidden
>Cc: email@hidden
>Subject: Re: AVAudioPlayer crash
>
>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