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

后端 未结 2 1893
孤独总比滥情好
孤独总比滥情好 2021-02-15 06:07

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:24

    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.

提交回复
热议问题