Search code examples
media-playeravaudioplayerios5

how to set increase the rate of sound and repeat this sound in Touch down event in iphone sdk


I am using the 9 button each button has a tag. when I single touch mp3 file play on Touch Up Inside method. and when I touch held increase the sound rate of mp3 file. The main issue - it is also playing the sound when I release the button. and I want to this- -When I keep it pressed, the sound file should repeat itself until I release the button on the Touch Down method. Can any one Solve this issue. Thanks in advance.


Solution

  • AVAudioPlayer setRate can help you change rates