You could say this is a Linux alternative to WASAPI loopback. The library requires PulseAudio to work.
sudo apt update
sudo apt install -y build-essential pkg-config libpulse-dev pulseaudio-utils
sudo apt install -y pulseaudio-utils libpulse0 libasound2-plugins
Here's the situation: The laptop destined for the full Linux install is still copying data from the hard drive to the home cloud. But since that laptop is an ancient relic, it’ll probably finish sometime in the next millennium... or on February 31st... or maybe when the Sahara floods.
This project is developed in WSL and works fine there—unless Windows is just messing with me. As shown here, it records live audio (system output) and microphone input. Line-In should work too, though I haven't tested it yet. Both inputs are visualized. It stutters a lot under WSL, but that’s definitely just because of the emulation.
In ZIP file is C source code for SO library, SO library and BAS file. Since the source is open, feel free to fork it and convert it to a header-only implementation if that suits your needs better.
sudo apt update
sudo apt install -y build-essential pkg-config libpulse-dev pulseaudio-utils
sudo apt install -y pulseaudio-utils libpulse0 libasound2-plugins
Here's the situation: The laptop destined for the full Linux install is still copying data from the hard drive to the home cloud. But since that laptop is an ancient relic, it’ll probably finish sometime in the next millennium... or on February 31st... or maybe when the Sahara floods.
This project is developed in WSL and works fine there—unless Windows is just messing with me. As shown here, it records live audio (system output) and microphone input. Line-In should work too, though I haven't tested it yet. Both inputs are visualized. It stutters a lot under WSL, but that’s definitely just because of the emulation.
In ZIP file is C source code for SO library, SO library and BAS file. Since the source is open, feel free to fork it and convert it to a header-only implementation if that suits your needs better.

