Share via


CSourcePosition::put_Rate (Compact 2013)

3/26/2014

Sets the rate of playback relative to normal speed.

Syntax

HRESULT put_Rate(
  double dRate 
);

Parameters

  • dRate
    Rate to set.

Return Value

Returns an HRESULT value from the call to CSourcePosition::ChangeRate.

Remarks

This property 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.

A rate of 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 frames.

Negative rates indicate reverse play. Not all media will support reverse play.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CSourcePosition Class