次の方法で共有


CPosPassThru::SetRate (Compact 2013)

3/26/2014

Sets a new playback rate.

Syntax

HRESULT SetRate(
  double dRate 
);

Parameters

  • dRate
    New rate, where 1 is the normal rate, 2 is twice as fast, and so on.

Return Value

Returns E_INVALIDARG if dRate is zero. Otherwise, returns the HRESULT value returned from calling IMediaSeeking::SetRate on the connected pin.

Remarks

This member function implements the IMediaSeeking::SetRate method by calling this same method on the upstream filter's output pin. It is an error to set the rate to 0.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CPosPassThru Class