ios - 为 AVFoundationAudioSettings 设置 AVAudioTimePitchAlgorithmVarispeed
<p><p>根据这些<a href="https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVFoundationAudioSettings_Constants/Reference/reference.html#//apple_ref/doc/uid/TP40009937-CH1-SW1" rel="noreferrer noopener nofollow">docs</a> ,我可以更改 AVAudioPlayer 的某些设置,包括 <code>AVAudioTimePitchAlgorithmVarispeed</code> 设置。我将如何设置这个值?我需要继承 AVAudioSetting.h 吗?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>如果不需要使用AVAudioPlayer,可以使用AVPlayer</p>
<pre><code>AVPlayerItem *playerItem = ;
playerItem.audioTimePitchAlgorithm = AVAudioTimePitchAlgorithmTimeDomain;
AVPlayer *player = ;
;
</code></pre></p>
<p style="font-size: 20px;">关于ios - 为 AVFoundationAudioSettings 设置 AVAudioTimePitchAlgorithmVarispeed,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/23879194/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/23879194/
</a>
</p>
页:
[1]