我们正在尝试使用remoteio进行音频录制,同时使用AudioServicesPlaySystemSound函数进行音频回放。问题是,无论何时运行remoteio,播放音量都会显著下降。似乎在幕后发生了一些最终的混合,但我们不知道如何改变这种行为。
remoteio的实现是基于休眠博客http://atastypixel.com/blog/using-remoteio-audio-unit/的
对于音频回放,我们只需使用如下代码
NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"wav" inDirectory:@"/"];
CFURLRef sndURL = (CFURLRef)[[NSURL alloc] initFileURLWithPath:sndPath];
SystemSoundID soundID;
int e = AudioServicesCreateSystemSoundID(sndURL, &soundID);
if (e) {
NSLog(@"couldn't create sound");
exit(0);
}
AudioServicesPlaySystemSound(soundID);非常感谢你的帮助
发布于 2010-10-08 03:34:12
您可能需要禁用语音处理AGC。
https://stackoverflow.com/questions/3882650
复制相似问题