iOS: How to resample audio(PCM data) using Audio Unit at runtime?
问题 How can i resample audio(PCM data) using Audio Unit at runtime/live ? I have an Audio Unit setup as follows. - (void) setUpAudioUnit { OSStatus status; AudioComponentInstance audioUnit; AudioComponent inputComponent; AudioComponentDescription audioComponentDescription; AudioStreamBasicDescription audioStreamBasicDescription; // Describe audio component audioComponentDescription.componentType = kAudioUnitType_Output; audioComponentDescription.componentSubType = kAudioUnitSubType