Player::setVoiceFx: Difference between revisions

From RAGE Multiplayer Wiki
(BASSFXType)
(See also block and correct category)
Line 27: Line 27:
</pre>
</pre>


==Example==  
==See also==  
[[Player::setVoiceFxChorus]]


{{ClientsideCode|
[[Category:Clientside API]]
}}

Revision as of 17:34, 17 October 2022

Syntax

player.setVoiceFx(fxType, priority);

Required Arguments

  • fxType: One of the following types of effect (see BASSFXType)
  • priority: The priority of the new FX, which determines it's position in the DSP chain - DSP/FX with higher priority are applied before those with lower. This parameter has no effect with DX8 effects when the "with FX flag" DX8 effect implementation is used.

BASSFXType

const BASSFXType = {
    BASS_FX_DX8_CHORUS: 0,
    BASS_FX_DX8_COMPRESSOR: 1,
    BASS_FX_DX8_DISTORTION: 2,
    BASS_FX_DX8_ECHO: 3,
    BASS_FX_DX8_FLANGER: 4,
    BASS_FX_DX8_GARGLE: 5,
    BASS_FX_DX8_I3DL2REVERB: 6,
    BASS_FX_DX8_PARAMEQ: 7,
    BASS_FX_DX8_REVERB: 8,
    BASS_FX_VOLUME: 9,

    // bassfx.dll
    BASS_FX_BFX_PEAKEQ: 65540,
    BASS_FX_BFX_BQF: 65555
};

See also

Player::setVoiceFxChorus