PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.43k stars 296 forks source link

Live examination of output audio on M1 MacOS? #838

Closed Bug-Reaper closed 12 months ago

Bug-Reaper commented 12 months ago

I know macOs in particular has made it quite difficult to monitor audio output going to normal hardware devices. Can the portaudio library capture audio that is being sent to speakers/headphones etc?

On an M1 mac latest MacOS.

Bug-Reaper commented 12 months ago

As far as I can tell. Most of the major players use a system-extension to do any audio output => audio input for macOS these days. System-extensions are the successor to kernel extensions. Seems fairly unlikely that this lib will have access to output devices as audio inputs unless for some reason the protections Apple has given against this don't exist at the C/C++ level?

Seems very unlikely, though I have not tested to confirm.

philburk commented 11 months ago

PortAudio is just a portability layer on top of the public OS APIs. It does not provide any inter-app communication like Jack. So PortAudio does not add any capture capability that you do not have from the OS APIs.

SoundFlower used to do audio capture but I believe it is not supported on the M1.