How can I use AVAudioPlayer to play audio faster *and* higher pitched?

后端 未结 2 1307
攒了一身酷
攒了一身酷 2021-02-15 05:48

Statement of Problem:

I have a collection of sound effects in my app stored as.m4a files (AAC format, 48 KHz, 16-bit) that I want to play a

2条回答
  •  情深已故
    2021-02-15 06:44

    For iOS 7, you'd want to look at AVPlayerItem's time-pitch algorithm (audioTimePitchAlgorithm) called AVAudioTimePitchAlgorithmVarispeed. Unfortunately this feature is not available on early systems.

提交回复
热议问题