Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

SystemAudio Capture API Fails with OSStatus error 1852797029 (kAudioCodecIllegalOperationError)

Issue Description

I'm implementing a system audio capture feature using AudioHardwareCreateProcessTap and AudioHardwareCreateAggregateDevice. The app successfully creates the tap and aggregate device, but when starting the IO procedure with AudioDeviceStart, it sometimes fails with OSStatus error 1852797029. (The operation couldn’t be completed. (OSStatus error 1852797029.)) The error occurs inconsistently, which makes it particularly difficult to debug and reproduce.

Questions

Has anyone encountered this intermittent "nope" error code (0x6e6f7065) when working with system audio capture?

Are there specific conditions or system states that might trigger this error sporadically?

Are there any known workarounds for handling this intermittent failure case?

Any insights or guidance would be greatly appreciated. I'm wondering if anyone else has encountered this specific "nope" error code (0x6e6f7065) when working with system audio capture.

SystemAudio Capture API Fails with OSStatus error 1852797029 (kAudioCodecIllegalOperationError)
 
 
Q