Effects.PreAmplifierValueSet method |
|
Remarks
Modifies the current pre-amplifier's amplification value. The current value can be obtained through the Effects.PreAmplifierGetValue 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] Public Function PreAmplifierValueSet ( nPlayerIndex as Int16, fValue as Single, nScaleType as enumVolumeScales ) as enumErrorCodes |
[C#] public enumErrorCodes PreAmplifierValueSet ( Int16 nPlayerIndex, float fValue, enumVolumeScales nScaleType ); |
[C++] public: enumErrorCodes PreAmplifierValueSet ( Int16 nPlayerIndex, float fValue, enumVolumeScales nScaleType ); |
Parameter |
Description |
|||||||||
|
|
|||||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
|||||||||
fValue |
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.NOERROR (0) |
The method call was successful. |