Share via


CPosPassThru::SetRate

 
Microsoft DirectShow 9.0

CPosPassThru::SetRate

The SetRate method sets the playback rate. This method implements the IMediaSeeking::SetRate method.

Syntax

  HRESULT SetRate(
    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.

Requirements

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

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

See Also