views:

545

answers:

1

Hi Everyone:

I am wondering if there is some way to fade in and out audio using AVAudioPlayer in CocoaTouch, with a pause command once the music finishes fading and then a play command once the fading begins. I have heard that one can use NSTimer for this purpose, but I am unsure of the easiest way to accomplish this.

Thanks for any help!

A: 

Hi, There is a good video tutorial to do this here: Playing a sound, and fading a sound using AVAudioPlayer on iPhone.

Yannick L.