Copyright © 2001-2018 MultiMedia Soft

Effects.MPXSetVocalAttenuation method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the percentage of attenuation applied to the right channel of the original MPX file. This method call has no effect until the MPX DSP effect is enabled by a call to the Effects.MPXEnable method.

 

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

 

 

Syntax

 

[Visual Basic]

control.Effects.MPXSetVocalAttenuation (

nPlayer as Integer,

nAttenuation as Integer

) as enumErrorCodes


 

[C++]

short control.Effects.MPXSetVocalAttenuation (

short nPlayer,

short nAttenuation

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nAttenuation

Attenuation value expressed in percentage. If set to 100 no voice will be heard while if set to 0 the full voice will be heard.

 

 

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.