大佬教程收集整理的这篇文章主要介绍了ios – 录制RemoteIO和VPIO之间的音量降低切换,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这是我进行切换的代码,由路由更改触发. (我不太确定我是否正确改变了,所以我也在这里问.)
如何解决录音音量下降的问题?
谢谢,感谢我能得到的任何帮助.
码头.
- (void)switchInputBoxTo : (OSTypE) inputBoxSubType { OSStatus result; if (!remoteIONodE) return; // NULL check // Get info about current output node AudioComponentDescription outputACD; AudioUnit currentOutputUnit; AUGraphNodeInfo(theGraph,remoteIONode,&outputACD,¤tOutputUnit); if (outputACD.componentSubType != inputBoxSubTypE) { AUGraphStop(theGraph); AUGraphUninitialize(theGraph); result = AUGraphDisconnectNodeInput(theGraph,0); NSCassert (result == noErr,@"Unable to disconnect the nodes in the audio processing graph. Error code: %d '%.4s'",(int) result,(const char *)&result); AUGraphRemoveNode(theGraph,remoteIONodE); // Re-init as other type outputACD.componentSubType = inputBoxSubType; // Add the RemoteIO unit node to the graph result = AUGraphAddNode (theGraph,&remoteIONodE); NSCassert (result == noErr,@"Unable to add the replacement IO unit to the audio processing graph. Error code: %d '%.4s'",(const char *)&result); result = AUGraphConnectNodeInput(theGraph,mixerNode,0); // Obtain a reference to the I/O unit from its node result = AUGraphNodeInfo (theGraph,&_remoteIoUnit); NSCassert (result == noErr,@"Unable to obtain a reference to the I/O unit. Error code: %d '%.4s'",(const char *)&result); //result = AudioUnitUninitialize(_remoteIoUnit); [self setupRemoteIOTest]; // reinit all that remoteIO/voiceProcessing stuff [self configureAndStartAudioProcessingGraph:theGraph]; } }
以上是大佬教程为你收集整理的ios – 录制RemoteIO和VPIO之间的音量降低切换全部内容,希望文章能够帮你解决ios – 录制RemoteIO和VPIO之间的音量降低切换所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。