Copyright © 2008-2026 MultiMedia Soft

PlaybackRateSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Changes both the sound tempo and pitch of the playback stream, as if an LP disc was played at wrong RPM rate. The use of this method will speed up the sound playback and voices will result altered; if you don't want to alter voices, use the PlaybackTempoSet method. The current rate percentage can be obtained through the PlaybackRateGet method. The current effective playback rate ratio, that may be also affected by the PlaybackTempoSet method, can be obtained through the PlaybackRateRatioGet method.

 

 

Syntax

 

[Visual Basic]

Public Function PlaybackRateSet (

fRatePerc As Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes PlaybackRateSet (

float fRatePerc

);


 

[C++]

public: enumErrorCodes PlaybackRateSet (

float fRatePerc

);


 

 

Parameter

Description

 

 

fRatePerc

The Sample Rate variation expressed in percentage; supported values are from -90 (meaning that the sound stream will be played at 10% of its normal speed, 10 times slower) to 3000 (meaning that the sound stream will be played at 3000% of its normal speed, 30 times faster).

Values outside of the mentioned range will be automatically capped to the nearest valid value.

Setting this parameter to 0 will set the original sound sample rate value.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.