Copyright © 2006-2019 MultiMedia Soft

RecordedSound.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 RecordedSound.PlaybackTempoSet method. The current rate percentage can be obtained through the RecordedSound.PlaybackRateGet method. The current effective playback rate ratio, that may be also affected by the RecordedSounds.PlaybackTempoSet method, can be obtained through the RecordedSound.PlaybackRateRatioGet method.

 

For further details about recorded sound methods refer to the RecordedSound object section.

For further details see the How to perform a recording session section.

 

 

Syntax

 

[Visual Basic]

control.RecordedSound.PlaybackRateSet (

fRatePerc as single

) as enumErrorCodes


 

[C++]

short control.RecordedSound.PlaybackRateSet (

float fRatePerc

);


 

 

Parameter

Description

 

 

fRatePerc

The Sample Rate variation expressed in percentage; supported values are from -90 to 90.

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.ERR_NOERROR (0)

The call was successful.