7
我就需要聲學回聲消除,因此kAudioUnitSubType_VoiceProcessingIO亞型似乎是一個不錯的選擇iOS的項目。 下面是我的音頻單元描述音頻圖形初始化錯誤與kAudioUnitSubType_VoiceProcessingIO音頻IO單元亞型
//io unit description
AudioComponentDescription ioUnitDescription;
ioUnitDescription.componentType = kAudioUnitType_Output;
ioUnitDescription.componentSubType = kAudioUnitSubType_VoiceProcessingIO;
ioUnitDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
ioUnitDescription.componentFlags = 0;
ioUnitDescription.componentFlagsMask = 0;
而且根據我RemoteIO亞型的經驗,我啓用了輸入元素:
UInt32 enable = 1;
AudioUnitSetProperty(ioUnit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, 1, &enable, sizeof(enable));
然而,在初始化圖形聲音時,我得到的錯誤。如果VoiceProcessingIO被RemoteIO取代,那麼相同的音頻圖形效果很好。
有RemoteIO和VoiceProcessingIO需要特別注意的有什麼區別?
感謝, Chuankai
抱歉上唯一的問題發表評論,但你有沒有搞清楚回聲消除?蘋果文檔一直提到具有此功能的語音處理IO,但我無法在任何地方找到它的例子。我真的很感激它 – 2012-07-25 15:31:37