Page 1 of 1

Recording Default Audio Output

Posted: Thu Mar 05, 2015 3:12 am
by chris319
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.

Re: Recording Default Audio Output

Posted: Tue Mar 10, 2015 1:50 pm
by blueznl
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...

Re: Recording Default Audio Output

Posted: Tue Mar 10, 2015 4:34 pm
by Little John
blueznl wrote:With Windows 7 / 8 Microsoft and associated parties seem to remove anything that would allow recording windows audio output.
A general statement like this is not quite true.
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

Posted: Tue Mar 10, 2015 8:50 pm
by sq4
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)

Re: Recording Default Audio Output

Posted: Wed Mar 11, 2015 12:43 am
by BasicallyPure
chris319 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.
How to Enable What U Hear Recording

Here is PureBasic code that will record the output audio.
http://www.mediafire.com/download/aes1p ... r_1p27.zip

Re: Recording Default Audio Output

Posted: Wed Mar 11, 2015 9:08 pm
by IzzyB
...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.

Re: Recording Default Audio Output

Posted: Wed Mar 11, 2015 10:21 pm
by infratec
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 :mrgreen:

Bernd

Re: Recording Default Audio Output

Posted: Thu Mar 12, 2015 5:00 am
by VB6_to_PBx
BasicallyPure wrote:
chris319 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.
How to Enable What U Hear Recording

Here is PureBasic code that will record the output audio.
http://www.mediafire.com/download/aes1p ... r_1p27.zip
BasicallyPure ,
great Program , many thanks for providing source code !!!

could you add new feature = controlling Volume in Playback ?

Re: Recording Default Audio Output

Posted: Thu Mar 12, 2015 6:29 pm
by BasicallyPure
VB6_to_PBx wrote:could you add new feature = controlling Volume in Playback ?
Here you go.
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.

Re: Recording Default Audio Output

Posted: Fri Mar 13, 2015 4:14 am
by VB6_to_PBx
BasicallyPure wrote:
VB6_to_PBx wrote:could you add new feature = controlling Volume in Playback ?
Here you go.
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.
Thanks for this new Feature !
:D