I want to control the playback speed of audio in AVAudioplayer
. Is this possible? If so, how would you do it?
views:
776answers:
4You can't. You can only change the volume not the speed of playback.
I think to do that, you will have to use the much lower level Audio Queue APIs and manipulate the audio stream manually to apply that effect.
AVAudioPlayer does not support playback speed setting. Audio Queue Services are quite a pain to use, so that you might want to try OpenAL. See the sound engine from Cocos2D or Finch for examples of how to wrap OpenAL in Objective-C. Finch does not yet support playback speed setting, but it’s a question of adding a few lines of code. (Update: Yes it was. The current Finch version now supports pitch/speed control.)
after I've recorded sound using avaudiorecorder an then playing back in OpenAL, the sound level is very low even if you set it to the max. Why is that? Please help. _ Thanks in advance.