Recording Default Audio Output

Just starting out? Need help? Post your questions and find answers here.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Recording Default Audio Output

Post 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.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Recording Default Audio Output

Post 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...
( 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... )
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Recording Default Audio Output

Post 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.
sq4
User
User
Posts: 98
Joined: Wed Feb 26, 2014 3:16 pm
Contact:

Re: Recording Default Audio Output

Post 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)
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: Recording Default Audio Output

Post 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
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
IzzyB
New User
New User
Posts: 5
Joined: Sun Oct 21, 2012 5:59 am

Re: Recording Default Audio Output

Post 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.
infratec
Always Here
Always Here
Posts: 7577
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Recording Default Audio Output

Post 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
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Recording Default Audio Output

Post 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 ?
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: Recording Default Audio Output

Post 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.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Recording Default Audio Output

Post 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
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Post Reply