1
调用AUGraphStart进行播放时接收kAUGraphErr_CannotDoInCurrentContext
我正在使用AUGraphAudio Units API和Audio Units在我的iOS应用程序中播放和录制音频。现在,当我AUGraph无法启动并出现以下错误时,我遇到了一个罕见的问题: 结果= kAUGraphErr_CannotDoInCurrentContext(-10863) 当我们尝试呼叫AUGraphStart为音频播放设置的错误时,发生了意外错误: (BOOL)startRendering { if (playing) { return YES; } playing = YES; if (NO == [self setupAudioForGraph:&au_play_graph playout:YES]) { print_error("Failed to create play AUGraph",0); playing = NO; return NO; } //result = kAUGraphErr_CannotDoInCurrentContext (-10863) OSStatus result = AUGraphStart(au_play_graph); if (noErr != result) { print_error("AUGraphStart", …
113
ios
audiounit
audiotoolbox