Receive all audio stream on your computer.

Started by brunnengi,

brunnengi

Hello.
Is it possible to receive real-time audio stream from my computer?
For example, I watch a movie, listen to music, receive a voice message from the discord. Can I receive the data stream, and then to visualize audio?

Andy09

Hi,

yes, i think so. You can record with BASS_WASAPI all sounds from your computer. Please search for WASAPI here in forum :-)

Andy

Ian @ un4seen

Yes, you can do that with a WASAPI "loopback" device. BASS includes support for them itself, so you won't actually need the BASSWASAPI add-on for this. A loopback device can be identified in the recording device list (from BASS_RecordGetDeviceInfo) by it having the BASS_DEVICE_LOOPBACK flag set.

Dylan_Fitterer

Thank you, this works well for me on windows.

What's the state of support for this with Linux (steamOS)?

Ian @ un4seen

I don't think "loopback" recording can be enabled programmatically on Linux (eg. via BASS_RecordInit), but assuming that PulseAudio/PipeWire is being used then the user can enable it manually with the PulseAudio Volume Control (pavucontrol); open the "Recording" tab in that while your app is recording and set it to monitor the wanted device. Your BASS_RecordInit call should be requesting the PulseAudio/PipeWire device (which is usually also the default) for this to apply.

Dylan_Fitterer

It does works programmatically via Proton! The loopback devices automatically show up as "Monitor DEVICENAME".