Microsoft Windows CE 3.0  

CSourceSeeking::SetRate

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Sets a new playback rate.

HRESULT SetRate(
double
dRate
);

Parameters

dRate
New rate, where 1.0 is the normal 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 Values

Returns the HRESULTvalue returned by the call to the CSourceSeeking::ChangeRatefunction.

Remarks

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

See Also

CSourceSeeking::GetRate