[wdmaudiodev] looped streaming

  • From: "Nikolay V. Pyatkov" <npyatkov@xxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 06 Apr 2010 14:14:05 -0400

If I specify KSINTERFACE_STANDARD_LOOPED_STREAMING as the interface ID for the
wave render sink pin, the Media Player stops working with an error. If the
interface is not specified (NULL) or the id is set to
KSINTERFACE_STANDARD_STREAMING the player works. 

Our driver implements only looped streaming. It has a circular buffer and
reports the audio position relatively to the beginning of the buffer.

Is there something else I need to do in to correctly describe pin interfaces?


Thanks,
Nikolay


KSPIN_INTERFACE WaveRenderPinInterfaces =
{
    NULL,    
    0,     
    0,
};


WaveRenderPinInterfaces .Set    = KSINTERFACESETID_Standard;
WaveRenderPinInterfaces .Id     = KSINTERFACE_STANDARD_LOOPED_STREAMING;
WaveRenderPinInterfaces .Flags  = 0;




PCPIN_DESCRIPTOR WavePinRenderSink = 
// Wave Out Streaming Pin (Renderer) KSPIN_WAVE_RENDER_SINK
{
    MAX_INPUT_STREAMS,
    MAX_INPUT_STREAMS,
    0,
    NULL,
    {
#ifdef NO_WAVEPIN_INTERFACES
        0,                                            // InterfacesCount
        NULL,                                         // Interfaces
#else
        1,                                            // InterfacesCount
        &WaveRenderPinInterfaces ,                    // Interfaces
#endif
        0,
        NULL,
        SIZEOF_ARRAY(PinDataRangePointersStreamRender),
        PinDataRangePointersStreamRender,
        KSPIN_DATAFLOW_IN,
        KSPIN_COMMUNICATION_SINK,
        &KSCATEGORY_AUDIO,
        NULL,
       0
    }
};


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

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

Other related posts: