คำถามติดแท็ก audiounit

1
การรับ kAUGraphErr_CannotDoInCurrentContext เมื่อเรียก AUGraphStart เพื่อเล่น
ฉันกำลังทำงานกับAUGraphและ Audio Units API เพื่อเล่นและบันทึกเสียงในแอป 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); …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.