次の方法で共有


IMediaPosition::put_Rate (Windows Embedded CE 6.0)

1/6/2010

This method sets the rate of playback relative to normal speed.

Syntax

HRESULT put_Rate(
  double dRate
);

Parameters

  • dRate
    [in] Rate to set.

Return Value

Returns an HRESULT value.

Remarks

This method allows an application to speed up or slow down playback relative to the normal default playback speed. A rate of 1.0 indicates 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.

Requirements

Windows Embedded CE Windows CE 2.12 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

IMediaPosition Interface