[wdmaudiodev] Re: AVStream Renderer

  • From: "John D. Farmer" <johndfarmer@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 23 Mar 2004 07:27:48 -0800

I've set those flags in my pin descriptor... Here is the following code:

{       // Pin 0 - Audio Rendering Pin
        &AudioPinDispatch,                                   // Dispatch
        NULL,                                                       //
Automation Table
        {                                                                 //
Pin Descriptor
            SIZEOF_ARRAY(PinInterfaces),                     // Interface
Count
            PinInterfaces,
// Interfaces
            SIZEOF_ARRAY(PinMediums),                      // Medium Count
            PinMediums,
// Mediums
            SIZEOF_ARRAY(PinAudioFormatRanges),     // Data Range Count
            PinAudioFormatRanges,                                    // Data
Ranges
            KSPIN_DATAFLOW_IN,                              // Data Flow
            KSPIN_COMMUNICATION_SINK,            // Communication
            &PINNAME_KSCATEGORY_AUDIO,        // Name
            &KSCATEGORY_AUDIO,                            // Category
            0
// Reserved
        },
        KSPIN_FLAG_RENDERER |
        KSPIN_FLAG_FRAMES_NOT_REQUIRED_FOR_PROCESSING,     // Flags
        1,
// Instances Possible
        1,
// Instances Necessary
        NULL,
// Allocator Framing
        AudioIntersectHandler
// Intersect Handler
    }
}

Where PINNAME_KSCATAGORY_AUDIO is STATIC_KSCATEGORY_AUDIO.
----- Original Message -----
From: "Waldemar Haszlakiewicz" <waldemar.haszlakiewicz@xxxxxxxx>
To: "John D. Farmer" <wdmaudiodev@xxxxxxxxxxxxx>
Sent: Tuesday, March 23, 2004 1:24 AM
Subject: [wdmaudiodev] Re: AVStream Renderer


> There is a flag that you have to set in pin struct -> KSPIN_FLAG_RENDERER,
> but there may be other things too -> like KSPIN_DATAFLOW_IN and
> KSPIN_COMMUNICATION_SINK.
>
> Anyway read about the flags in DDK and define them correctly.
> Another thing recheck every struct 3 times that everything is correct.
>
> Peace
> Waldemar
>
>
> JDF> I am trying to create a AVStream Minidriver Audio Renderer.  I have
based what I have so far
> off of the AVSSAMP sample from the DDK, I have taken out most of the video
stuff and implemented the
> audio stuff.  The problem I am having is that I can't seem to setup the
audio pin as a rendering
> pin.  I want to have it show up as a Audio Renderer in GraphEdit instead
of a WDM Streaming Capture
> Device that it currently shows up as.  I've looked at the MSVAD sample,
and its helped some, but I
> cannot seem to divine its secrets from the code or its INF.  I know that
MSVAD is a PortCls driver,
> but it seems to be the only example I can find that actually shows up in
the Audio Renderers
> category in MSVAD.  I've tried different Categories Types, Node Types, Pin
Types, and Topology
> Types.  I am rather confused as to what makes a renderer a renderer.
Could someone please enlighten
> me?
>
> JDF> Any help would be appreciated.
>
> JDF> John Farmer
>
> ******************
>
> 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: