This one is about recording system audio on macOS, which I needed for a meeting-notes app I'm building for myself, and which has two traps in it that I couldn't find written down together anywhere. The first is a Core Audio process tap that looks completely dead, with every call returning noErr and an IOProc that never fires, even when permissions are fine. The second is what happens when you work around that with ScreenCaptureKit, which is that macOS decides you're sharing your screen and mutes every banner from every app for as long as you record.
The tap that "silently fails"
Process taps arrived in macOS 14.2, and the setup goes like this: we describe what to tap with a CATapDescription , create the tap, then create a private aggregate device that has the tap in its tap list, and read the audio through an IOProc on that aggregate.…