Copyright © 2001-2018 MultiMedia Soft

Effects.PlaybackRateGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the current playback rate percentage for the given player. The playback rate percentage can be modified calling the Effects.PlaybackRateSet method.

This method doesn't work with sounds with more than 2 channels (5.1 or 7.1) or if the EnableMixingFeatures property has been set to BOOL_FALSE.

 

Further details about songs mixing can be found inside the How to mix your songs section.

See the How to apply special effects to a playing sound section for further details.

 

 

Syntax

 

[Visual Basic]

control.Effects.PlaybackRateGet (

nPlayer as Integer,

fRatePerc as single

) as enumErrorCodes


 

[C++]

short control.Effects.PlaybackRateGet (

short nPlayer,

float *fRatePerc

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

fRatePerc

Reference that, on return from the method call, will contain the Sample Rate variation expressed in percentage; supported values are from -90 to 90.

 

 

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.