根据这些docs ,我可以更改 AVAudioPlayer 的某些设置,包括 AVAudioTimePitchAlgorithmVarispeed 设置。我将如何设置这个值?我需要继承 AVAudioSetting.h 吗?
Best Answer-推荐答案 strong>
如果不需要使用AVAudioPlayer,可以使用AVPlayer
AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:url];
playerItem.audioTimePitchAlgorithm = AVAudioTimePitchAlgorithmTimeDomain;
AVPlayer *player = [AVPlayer playerWithPlayerItem:playerItem];
[player play];
关于ios - 为 AVFoundationAudioSettings 设置 AVAudioTimePitchAlgorithmVarispeed,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/23879194/
|