Export (0) Print
Expand All

IMFDesiredSample::GetDesiredSampleTimeAndDuration method

Called by the mixer to get the time and duration of the sample requested by the presenter.

Syntax


HRESULT GetDesiredSampleTimeAndDuration(
  [out]  LONGLONG *phnsSampleTime,
  [out]  LONGLONG *phnsSampleDuration
);

Parameters

phnsSampleTime [out]

Receives the desired sample time that should be mixed.

phnsSampleDuration [out]

Receives the sample duration that should be mixed.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

MF_E_NOT_AVAILABLE

No time stamp was set for this sample. See IMFDesiredSample::Clear.

 

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