Weird problem with sound card detecting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • June Li

    Weird problem with sound card detecting

    H

    I got a problem with detecting sound card with Windows x

    I use SDK function waveInGetNumDev s() to test if there is a sound card. But even if there is no sound card installed, the function still returns 1. And even waveInGetDevCap s() 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

  • William DePalo [MVP VC++]

    #2
    Re: Weird problem with sound card detecting

    "June Li" <anonymous@disc ussions.microso ft.com> wrote in message
    news:9A3AAB55-263C-481E-BB8C-F6C7EF343781@mi crosoft.com...[color=blue]
    > I use SDK function waveInGetNumDev s() to test if there
    > is a sound card. But even if there is no sound card
    > installed, the function still returns 1.[/color]

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

    microsoft.publi c.win32.program mer.mmedia
    [color=blue]
    > And even waveInGetDevCap s() 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.[/color]

    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


    Comment

    • William DePalo [MVP VC++]

      #3
      Re: Weird problem with sound card detecting

      "June Li" <anonymous@disc ussions.microso ft.com> wrote in message
      news:CAEBE7EE-64C7-4CE8-9417-AF39A19F6600@mi crosoft.com...[color=blue]
      > Thanks William.[/color]

      You are welcome.

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

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

      The problem here is one of expectation. waveInGetNumDev s() 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


      Comment

      • June Li

        #4
        Re: Weird problem with sound card detecting

        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?

        Comment

        Working...