thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 317 forks source link

Add support for record system audio on macOS #428

Open thewh1teagle opened 4 months ago

thewh1teagle commented 4 months ago

Hey! I would like to use rtaudio in my desktop app for record mic / speakers output on macOS / Windows. I found that it already supports recording speakers on windows using WSAPI. In recent versions of macOS, there's new API called screen capture kit which provides a way getting audio samples from the speakers. I'm not sure if Core Audio supports it, but screen capture kit definitely support it. That way other apps can use rtaudio to record system audio and potentially their mic in the same stream, and it's useful for record meetings / screen recording and there's many more use cases. Thanks