Weird problem with sound card detecting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I got a problem with detecting sound card with Windows x

I use SDK function waveInGetNumDevs() to test if there is a sound card. But even if there is no sound card installed, the function still returns 1. And even waveInGetDevCaps() returns no error. I checked device->hardware, and there are some items under "Audio, Vido and game" catogary, they includes
"Legacy audio driver",
"Audio codecs
"Media Control devices
Guess there are some onboard Audio support, but no sound card installed

SO how can I detect if there is a sound card installed or not? Can anyone help me
Thank
 
June Li said:
I use SDK function waveInGetNumDevs() to test if there
is a sound card. But even if there is no sound card
installed, the function still returns 1.

Your post is off-topic here. You should post again in

microsoft.public.win32.programmer.mmedia
And even waveInGetDevCaps() returns no error. I checked
device->hardware, and there are some items under "Audio,
Vido and game" catogary, they includes :
"Legacy audio driver",
"Audio codecs"
"Media Control devices"
Guess there are some onboard Audio support, but no sound
card installed.

It doesn't matter if the sound support is on the system board or a card. If
the driver finds suitable hardware and initializes it so that there is a
device available to be used then the function counts it.

Regards,
Will
 
June Li said:
Thanks William.

You are welcome.

As I said, you are in the wrong group.
I just tested using another function: mixerGetNumDevs. This function
returns to zero.
Now my problem becomes: Should sound card/ device
(or onboard audio support capability ) necessarily detected
by calling mixerGetNumDevs() or waveInGetNumDevs

No of course not, mixers and waveform devices are different.

The problem here is one of expectation. waveInGetNumDevs() returns the
number of waveform devices on a system. In fact, one of them could be the
one that handles recording from a voice modem. It doesn't tell you what you
want to know.

Most multimedia applications use that function to present a list of devices
to the user and let him choose the one he wants.

PLEASE post follow-up in the multimedia group.

Regards,
Will
 
Oops, didn't find the post is already move to multimedia group --and I just made a duplicate on

So, waveInDevice is not enough to make microphone work. Is a mixer device the only prerequisite device to make mic work? I mean by calling mixerGetNumDevs() and it returns number larger than 0, (maybe do some capability test) then I can proceed to test microphohe? If not what else?
 
Back
Top