Share via


IAMTimelineSrc::IsNormalRate

 
Microsoft DirectShow 9.0

IAMTimelineSrc::IsNormalRate

The IsNormalRate method indicates whether the clip will play at the normal playback rate; that is, the playback rate of the original file.

Syntax

  HRESULT IsNormalRate(
    BOOL *pVal
);

Parameters

pVal

Pointer to a variable that receives a Boolean value indicating how the clip will render. If the value is TRUE, the clip will play at the normal rate. Otherwise, it will play faster or slower than normal.

Return Value

Returns S_OK if successful, or E_POINTER otherwise.

Remarks

A clip's playback rate is determined by its media start and stop times, relative to its timeline times:

Playback rate = (Media Stop — Media Start) / (Timeline Stop — Timeline Start)

If this ratio is equal to 1, the clip plays at the authored speed. Otherwise, it plays faster or slower. For more information, see Time in DirectShow Editing Services.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also