Export (0) Print
Expand All

IMFDesiredSample::SetDesiredSampleTimeAndDuration method

Called by the presenter to set the time and duration of the sample that it requests from the mixer.

Syntax


void SetDesiredSampleTimeAndDuration(
  [in]  LONGLONG hnsSampleTime,
  [in]  LONGLONG hnsSampleDuration
);

Parameters

hnsSampleTime [in]

The time of the requested sample.

hnsSampleDuration [in]

The duration of the requested sample.

Return value

This method does not return a value.

Remarks

This value should be set prior to passing the buffer to the mixer for a Mix operation. The mixer sets the actual start and duration times on the sample before sending it back.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Evr.h

Library

Strmiids.lib

See also

IMFDesiredSample
How to Write an EVR Presenter

 

 

Community Additions

ADD
Show:
© 2014 Microsoft