Author Topic: Receive all audio stream on your computer.  (Read 1081 times)

brunnengi

  • Posts: 2
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

  • Posts: 32
Re: Receive all audio stream on your computer.
« Reply #1 on: 1 Mar '21 - 06:11 »
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

  • Administrator
  • Posts: 26077
Re: Receive all audio stream on your computer.
« Reply #2 on: 1 Mar '21 - 17:23 »
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

  • Posts: 24
Re: Receive all audio stream on your computer.
« Reply #3 on: 14 Jul '23 - 18:42 »
Thank you, this works well for me on windows.

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

Ian @ un4seen

  • Administrator
  • Posts: 26077
Re: Receive all audio stream on your computer.
« Reply #4 on: 17 Jul '23 - 12:32 »
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

  • Posts: 24
Re: Receive all audio stream on your computer.
« Reply #5 on: 20 Sep '24 - 18:28 »
It does works programmatically via Proton! The loopback devices automatically show up as "Monitor DEVICENAME".