Discussion:
C# CaptureSound
(too old to reply)
Jeff
2005-10-05 21:15:11 UTC
Permalink
I don't know if this is a stupid question, but I will ask it anyway.

When I run the C# CaptureSound sample from the DirectX 9 SDK, the
choices for devices are "Primary Sound Capture Driver" and "SoundMAX
Digital Audio". The "Input Format" settings in the next dialog appear
to be same for either option. No matter what combination I have tried
of device and input format, I can't record anything. I hit the
"Record" button and start playing something in Windows Media Player.
Maybe this is my problem. What kinds of audio is this thing set up to
record? My file is always the correct number of seconds long, but
there is no sound whatsoever.

Any insight into what I am doing wrong is very welcome.

Jeff
Chris P. [MVP]
2005-10-05 21:54:36 UTC
Permalink
Post by Jeff
I don't know if this is a stupid question, but I will ask it anyway.
When I run the C# CaptureSound sample from the DirectX 9 SDK, the
choices for devices are "Primary Sound Capture Driver" and "SoundMAX
Digital Audio". The "Input Format" settings in the next dialog appear
to be same for either option. No matter what combination I have tried
of device and input format, I can't record anything. I hit the
"Record" button and start playing something in Windows Media Player.
Maybe this is my problem. What kinds of audio is this thing set up to
record? My file is always the correct number of seconds long, but
there is no sound whatsoever.
The sample doesn't make any adjustments to the recording mixer. Adjust the
recording mixer to "Stereo Mix" by running "sndvol32 /r".

The other problem may be that the sample is set stop capture on loss of
focus, but I'm not overly familiar with the C# version.
Jeff
2005-10-06 04:41:31 UTC
Permalink
I tried adjusting the recording mixer to "Stereo Mix", but there is no
difference. I also tried starting the track in Windows Media Player
and then starting the capture, to make sure focus was not lost. No
joy. I will keep trying...
Chris P. [MVP]
2005-10-06 14:57:40 UTC
Permalink
Post by Jeff
I tried adjusting the recording mixer to "Stereo Mix", but there is no
difference. I also tried starting the track in Windows Media Player
and then starting the capture, to make sure focus was not lost. No
joy. I will keep trying...
Usually the thing I would do at this point is make a test recording with
"Sound Recorder" to validate that the signal is making correctly through
the sound card.

Loading...