Does anyone know of a PureBasic way to tap into the audio stream that is going to the default output device? I want to record this stream.
Suppose I have an application (web browser) that is playing back to the default audio output device. That is the audio stream I want to record. There is a way to do this using a program called Virtual Audio Cable, but I would like to avoid that if possible.
Recording Default Audio Output
Re: Recording Default Audio Output
I don't think there is a way. With Windows 7 / 8 Microsoft and associated parties seem to remove anything that would allow recording windows audio output. I assume pressure from parties such as Google (YouTube) might be the major reason, as there is little technical reason to actively strip out features.
Off topic: one approach would be to use a 'virtual audio card'. If someone knows a good solution feel free to tell me, as I have some need for audio recording myself...
Off topic: one approach would be to use a 'virtual audio card'. If someone knows a good solution feel free to tell me, as I have some need for audio recording myself...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Recording Default Audio Output
A general statement like this is not quite true.blueznl wrote:With Windows 7 / 8 Microsoft and associated parties seem to remove anything that would allow recording windows audio output.
I just tested it, using FastStone Capture 8.0 (Shareware).
Works fine e.g. with this video, with Firefox on Windows 7 x64. All visual and acoustic output is captured.
However, unfortunately I also don't know how to capure audio output with our own programs.
Re: Recording Default Audio Output
Sure it's possible :
- Set your Windows mixer - recording devices to "Stereo mix" (some drivers call this : "record what you hear")
- Take the windows recorder and push...."Record"
- You can make an MME/DirectX program or use my ASIO code
http://www.purebasic.fr/english/viewtop ... hilit=asio
(my username was eriansa)
- Set your Windows mixer - recording devices to "Stereo mix" (some drivers call this : "record what you hear")
- Take the windows recorder and push...."Record"

- You can make an MME/DirectX program or use my ASIO code
http://www.purebasic.fr/english/viewtop ... hilit=asio
(my username was eriansa)
- BasicallyPure
- Enthusiast
- Posts: 539
- Joined: Thu Mar 24, 2011 12:40 am
- Location: Iowa, USA
Re: Recording Default Audio Output
How to Enable What U Hear Recordingchris319 wrote:Does anyone know of a PureBasic way to tap into the audio stream that is going to the default output device? I want to record this stream.
Here is PureBasic code that will record the output audio.
http://www.mediafire.com/download/aes1p ... r_1p27.zip
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
Until you know everything you know nothing, all you have is what you believe.
Re: Recording Default Audio Output
...further and fwiw
The application, Audacity, can do this and is open source and cross platform.
I just confirmed that it works at level 2.0.6 on my Win7 64 system.
The application, Audacity, can do this and is open source and cross platform.
I just confirmed that it works at level 2.0.6 on my Win7 64 system.
Re: Recording Default Audio Output
Hi,
I had no 'Stereo mixer'.
Then I flooked after the driver: Microsoft
Then I looked after the vendor and device id: Realtek
I installed the Realtek HDA driver and ... stereo mixer was available
but not activated. After activating I can record
Bernd
I had no 'Stereo mixer'.
Then I flooked after the driver: Microsoft
Then I looked after the vendor and device id: Realtek
I installed the Realtek HDA driver and ... stereo mixer was available
but not activated. After activating I can record

Bernd
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Recording Default Audio Output
BasicallyPure ,BasicallyPure wrote:How to Enable What U Hear Recordingchris319 wrote:Does anyone know of a PureBasic way to tap into the audio stream that is going to the default output device? I want to record this stream.
Here is PureBasic code that will record the output audio.
http://www.mediafire.com/download/aes1p ... r_1p27.zip
great Program , many thanks for providing source code !!!
could you add new feature = controlling Volume in Playback ?
PureBasic .... making tiny electrons do what you want !
"With every mistake we must surely be learning" - George Harrison
- BasicallyPure
- Enthusiast
- Posts: 539
- Joined: Thu Mar 24, 2011 12:40 am
- Location: Iowa, USA
Re: Recording Default Audio Output
Here you go.VB6_to_PBx wrote:could you add new feature = controlling Volume in Playback ?
http://www.mediafire.com/download/nkef3 ... r_1p28.zip
Playback volume can now be set from the popup menu.
Just right click on one of the Vu meters.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
Until you know everything you know nothing, all you have is what you believe.
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Recording Default Audio Output
Thanks for this new Feature !BasicallyPure wrote:Here you go.VB6_to_PBx wrote:could you add new feature = controlling Volume in Playback ?
http://www.mediafire.com/download/nkef3 ... r_1p28.zip
Playback volume can now be set from the popup menu.
Just right click on one of the Vu meters.

PureBasic .... making tiny electrons do what you want !
"With every mistake we must surely be learning" - George Harrison