[wdmaudiodev] Re: Install audio driver without Sound Recording device

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 3 Aug 2010 11:29:48 -0700

 Jake Alley wrote:
> Hi, I morphed the "simple" example from the development kit to create
> a specialized audio rendering driver.  I stripped down the example
> .inf file to just install the rendering driver.  It works, but the
> problem is it still shows a recording device in the Sound Devices
> dialog, and I don't want a record device.  Is this something that is
> handled in the .inf file or in the code?  I tried messing with
> mintopo.cpp to get rid of references to capture pins, but it blue
> screens when I run it.
> For instance:
> PHYSICALCONNECTIONTABLE TopologyPhysicalConnections =
> {
>     KSPIN_TOPO_WAVEIN_DEST,     // TopologyOut
>     KSPIN_WAVE_CAPTURE_SOURCE,  // WaveIn --> commenting this and
> other references results in blue screen.
> };

That's not an array, that's a structure, and each field has the specific
meaning in the comments.  To omit a connection, use -1 instead of the
pin number.  In your case, I think you want this:

PHYSICALCONNECTIONTABLE TopologyPhysicalConnections =
    -1,     // TopologyOut
    -1,  // WaveI

Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

Other related posts: