[wdmaudiodev] Re: Removing audio device through the driver

  • From: "Stephan" <stephan@xxxxxxxxxx>
  • To: "Jeff Claar" <jclaar@xxxxxxxxxxxxxx>, <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 16 Apr 2003 16:22:40 +0200

Hi Jeff,

I'm pretty sure you need to put the two pins on two different filters. You 
should create them dynamically using
KsCreateFilterFactory() and KsFilterFactorySetDeviceClassesState() because 
AVStream won't parse a KSDEVICE_DESCRIPTOR
with more than one FilterDescriptor correctly.

    Stephan

----- Original Message -----
From: "Jeff Claar" <jclaar@xxxxxxxxxxxxxx>
To: <wdmaudiodev@xxxxxxxxxxxxx>
Sent: Tuesday, April 15, 2003 11:03 PM
Subject: [wdmaudiodev] Removing audio device through the driver


>
> 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/
>

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

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: