使用AVAudioPlayer和它的 "速率",我们可以加快音频播放速度,最高只能达到2倍。在macOS应用程序开发中,有什么方法可以用swift将播放速度加快到3倍或4倍?
https:/developer.apple.comdocumentationavfoundationavplayer1386591-setrate
是符合 macOS 10.8+你试过了吗?
macOS 10.8+