[wdmaudiodev] Removing audio device through the driver

  • From: Jeff Claar <jclaar@xxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 15 Apr 2003 14:03:39 -0700


Hi all,

I have a device that has 2 channels of input and 2 channels of output.
Usually both of these outputs are available, but the user may configure the
device so that only input or only output is available. In this case, I'd
like either the recording or playback device to disappear from the Windows
Sounds and Audio Devices property page.

I have an avstream driver for the device, which has one filter that exposes
two pins, one each for input and output. The device appears under the "Sound
playback" and "Sound recording" drop-down list boxes in the sounds property
page, even if only input (or output) is enabled.

My initial thought was to disable either the rendering or capturing
interface for the device, through IoSetDeviceInterfaceState, using the
symbolic name for KSCATEGORY_RENDER or KSCATEGORY_CAPTURE. Unfortunately,
this doesn't make any difference. However, if I disable the KSCATEGORY_AUDIO
interface, both the playback and recording audio devices are removed from
the property page.

Is there a way I can disable either one or the other?

Thanks,
Jeff


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.de/

Other related posts: