Microsoft DirectX 8.1 (C++)

CPosPassThru::put_Rate

The put_Rate method sets the playback rate. This method implements the IMediaPosition::put_Rate method.

Syntax

HRESULT put_Rate(
    double dRate
);

Parameters

dRate

Playback rate. Must not be zero.

Return Value

Returns E_INVALIDARG if dRate is zero. Otherwise, returns the HRESULT value from the connected pin.

Remarks

Negative rates indicate reverse play. Not all media will support reverse play.

See Also