Record Audio Output

Hi all,

I want to record audio output, mean the audio stream from the speacker not the mic.

For example I start Media Player and then record it's output.

Can you help me?

cheers

[210 byte] By [Blu_Ciccio] at [2007-12-25]
# 1
DirectSoundCapture will capture from the selected recording device/channel in the Windows volume control utility. You should find a channel called "Wave Out Mix" or "Stereo Mix" or something similar, and check it as the selected recording channel. Note that not all cards can reroute the stereo mix to the recording unit, but many do...
WessamBahnassi at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 2

Thx a lot!

But I'm a newbye can you post a little code snippet, please?

cheers.

Blu_Ciccio at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 3
I believe the SDK's DirectSound samples are a good start... (of course, choosing which channel to record from is not something that can be done programmatically by DirectSound).
WessamBahnassi at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 4

Thx for the reply!

By the way , you can tell me HOW to choose which channel can I record (programmatically)?

If it's offtopic thx for the help! :)

cheers

Blu_Ciccio at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 5
This sample does exactly what you want:
http://www.codeproject.com/audio/admixer.asp?df=100&forumid=13301&exp=0&select=1505444
WessamBahnassi at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 6
Sorry but I can't understand c++...
Blu_Ciccio at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...