How to speed up or slow down the background track with iPhone SDK?

Is there an easy way to control the playback speed / tempo of an audio file being played using Audio Queue Services? For example, if a game plays in background music, I want the BGM speed to increase over time, but without changing the pitch. thanks!

+3
source share
1 answer

There is no trivial way to do this that I know of. On a Mac, you would presumably use Audio Units, but I think the support for them is limited to the iPhone SDK.

AudioQueue, AudioFileReadPackets() AudioQueueEnqueueBuffer(), , .

, .

+1

All Articles