Effects.PreAmplifierSpeakerValueSet method |
|
Remarks
Modifies the preamplifier's amplification value related to a specific speaker (only for multi-channel songs like 5.1 or 7.1). The current value can be obtained through the Effects.PreAmplifierGetSpeakerValue 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 PreAmplifierSpeakerValueSet ( nPlayerIndex as Int16, nSpeaker as enumSpeakers fValue as Single, nScaleType as enumVolumeScales ) as enumErrorCodes |
[C#] public enumErrorCodes PreAmplifierSpeakerValueSet ( Int16 nPlayerIndex, enumSpeakers nSpeaker, float fValue, enumVolumeScales nScaleType ); |
[C++] public: enumErrorCodes PreAmplifierSpeakerValueSet ( Int16 nPlayerIndex, enumSpeakers nSpeaker, float fValue, enumVolumeScales nScaleType ); |
Parameter |
Description |
|||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
|||||||||||||||||||||||||||||||||||||||
nSpeaker |
The output speaker assigned to the given player. Supported values are the following:
Below you can see the positioning of the Stereo speakers on a wide 7.1 configuration (the reported blue numbers corresponds to the Numeric value of the parameter) and below you can see the positioning of the Mono speakers on the same wide 7.1 configuration
|
|||||||||||||||||||||||||||||||||||||||
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. |