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