Share via


CPosPassThru::put_Rate

 
Microsoft DirectShow 9.0

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.

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also