Partager via


CSourceSeeking::SetRate

 
Microsoft DirectShow 9.0

CSourceSeeking::SetRate

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

Syntax

  HRESULT SetRate(
    double dRate
);

Parameters

dRate

Playback rate.

Return Value

Returns an HRESULT value.

Remarks

This method updates the value of the CSourceSeeking::m_dRateSeeking member variable, and then calls the pure virtual method CSourceSeeking::ChangeRate. The method does not validate the dRate parameter.

Requirements

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

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

See Also