A colossal Dreamer: GR鐵塔-天生我材

modify playingRate with AVAudioEngine, AVAudioPlayerNode 본문

Development/아이폰

modify playingRate with AVAudioEngine, AVAudioPlayerNode

江多林 2022. 9. 26. 17:23

 

AVAudioNode

AVAudioUnit

AVAudioUnitTimeEffect

AVAudioUnitVarispeed(only rate), AVAudioUnitTimeEffect(pitch, overlap, rate)

 

AVAudioUnitVarispeed 를 사용해보자

AVAudioPlayer → AVAudioUnitVarispeed → mainMixerNote

형태로 구성하면, AVAudioUnitVarispeed.rate 을 조종해서 재생속도를 조정할 수 있다.

 

ref. stackoverflow