RecordedSound.PlaybackRateSet method |
|
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 class section.
For further details see the How to perform a recording session section.
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 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.NOERROR (0) |
The method call was successful. |