I'm not an export on Objective-C programming, but shouldn't the
AVAudioPlayer
variable be a class member ?
Now, it seems your are creating an instance of the
AVAudioPlayer
and release it.
what does that do ?
self.player = p;
[p release];
will it also release self.player ?
have a look at :
http://mobileorchard.com/easy-audio-playback-with-avaudioplayer/[
^]
Max.