Перейти к содержанию

VoiceChat.setPreprocessingParam

Материал из RAGE MP Wiki Archive
Версия от 13:15, 13 августа 2024; imported>Shr0x (see also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Client-Side
Function

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения JavaScript



Description

This function is for setting Audio Pre-Processing on the Voicechat. This function is utilized by the Speexdsp library therefore for any values and params it would be best to check those.

Parameters

  • setting - the int representing the value you wish to change (For example SPEEX_PREPROCESS_SET_NOISE_SUPPRESS would be 18) SpeexDSP PreProcess Source.
  • value - Based on the value allowed in the Speex documentation

(The setting you wish to change can also be confirmed in the following documentation: Speex)

Example

This example calling clientside event (You will need to test with another player to fine tune the effects.

<syntaxhighlight lang="javascript"> mp.voiceChat.setPreprocessingParam(10,1); </syntaxhighlight>


This might require some more examples to show you the benefits of using a Pre Processor on the Voice Chat

See Also