Apple introduced API that enables recording audio from other apps or the entire system in macOS 14.4, but it's poorly documented and there's no sample code available, so I decided to fix that: https://github.com/insidegui/AudioCap
GitHub - insidegui/AudioCap: Sample code for recording system audio on macOS 14.4+

Sample code for recording system audio on macOS 14.4+ - insidegui/AudioCap

GitHub
@_inside has OBS not been capable of this for a long time?
@siguza Not sure about OBS, but this used to require a custom kernel extension or something, and it was a huge pain on Apple Silicon. This new API makes things easier.
@_inside apparently it's been supported since macOS 13: https://obsproject.com/kb/macos-desktop-audio-capture-guide
macOS Desktop Audio Capture Guide | OBS

OBS Knowledge Base. Make sure your viewers can hear what you hear from your Mac

@siguza Interesting. No idea what they were using, but this API is new as of 14.4
@_inside a quick grep through the macOS SDK would suggest ScreenCaptureKit.framework?
@siguza @_inside You can record system audio with that, yes
@siguza @_inside and I’m referring to the CoreAudio stuff (ATAudioTap*, etc.) but ATAudioTapDescriptionPID is new as of iOS 16