Search code examples
iosobjective-caudioavaudioplayer

What happens to an AVAudioPlayer instance after the sound has finished playing?


Will it be automatic released by the ARC or will it stay there after i remove it somehow? If it still stays there, is there any usefull data which i can gather from the instance?


Solution

  • It have the same lifetime as any other object instance, so it's live if retained and autoreleased otherwise. And I guess a duration or playing or currentTime are very useful properties.