Effects.PreAmplifierValueGet method |
|
Remarks
Obtains the current pre-amplifier's amplification value (for stereo and mono sounds). The current value can be modified through the Effects.PreAmplifierValueSet method.
Pre-amplification is applied only if enabled through a previous call to the Effects.PreAmplifierEnable method.
See the How to apply special effects to a playing sound section for further details.
Syntax
[Visual Basic] control.Effects.PreAmplifierValueGet ( nPlayer as Integer, fValue as Single, nScaleType as enumVolumeScales ) as enumErrorCodes |
[C++] short control.Effects.PreAmplifierValueGet ( short nPlayer, float *fValue, short nScaleType ); |
Parameter |
Description |
|||||||||
|
|
|||||||||
nPlayer |
Number representing the zero-based index of the involved player |
|||||||||
fValue |
Reference that, on return from the method call, will contain the amplification value expressed in the unit specified by the nScaleType parameter. |
|||||||||
nScaleType |
The amplification scaling type. Supported values are the following:
|
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. |