开发者

using remoteio together with AudioServicesPlaySystemSound

we are trying to use remoteio for audio recording in conjunction with the AudioServicesPlaySystemSound function for audio playback. the problem is that whenever remoteio is running the playback volume drops significantly. it seems like if some final mixing takes place behind the scene but we do not no how to change this behavior.

the implementation of the remoteio is based on the fallowing blog http://atastypixel.com/blog/using-remoteio-audio-unit/

for audio playback we just use code like this one

NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"wav" inDirectory:@"/"];
CFURLRef sndURL = (CFURLRef)[[NSURL alloc] initFileURLWithPath:sndPath];
SystemSoundID soundID;

int e = AudioServicesCreateS开发者_运维百科ystemSoundID(sndURL, &soundID);
if (e) {
  NSLog(@"couldn't create sound");
  exit(0);
}
AudioServicesPlaySystemSound(soundID);

thanks a lot for any help


You may have to disable the voice processing AGC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜