Tuesday, 15 April 2014

iphone - How to get notified when AVAudioPlayer loops back to the beginning? -



iphone - How to get notified when AVAudioPlayer loops back to the beginning? -

i'm playing sound file in loop , need restart animation every time loop starts beginning.

i couldn't find delegate method in documentation. there way notified when player loops around beginning?

my approach utilize timer checks current play time every few milliseconds sounds horrible solution.

you can set delegate avaudioplayer instance. delegate notified whenever sound has finished playing. can restart player play 1 time again , restart animation. off top of head. here more information.

iphone ios avaudioplayer

No comments:

Post a Comment