Partager via


CSourceSeeking::SetRate

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Sets a new playback rate.

Syntax

HRESULT SetRate(
  double dRate 
);

Parameters

  • dRate
    New rate, where 1.0 is the normal playback speed.

    Specifying 2.0 causes playback at twice the normal rate: a video created for 10 frames per second (fps) will be played back at 20 fps, if resources permit.

    Audio streams played back at above-normal speed increase the pitch rather than drop samples.

    A rate of 0.5 specifies half speed.

Return Value

Returns the HRESULT value returned by the call to the CSourceSeeking::ChangeRate function.

Remarks

You must implement ChangeRate to use this method. The m_dRateSeeking data member is set to the new rate. Setting the rate to zero causes an error.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CSourceSeeking::GetRate