Interface MergeClientSoundEvent
- All Superinterfaces:
ClientEvent
,Event
This event is emitted before the
This is called even when the player is muted or not talking.
When the voice chat it disabled, this event is not called.
ClientSoundEvent
is getting called.
It allows you to merge audio into the audio that is captured from the microphone.
This is called even when the player is muted or not talking.
When the voice chat it disabled, this event is not called.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mergeAudio
(short[] audio) Merges the audio into the audio that is captured from the microphone.Methods inherited from interface de.maxhenkel.voicechat.api.events.ClientEvent
getVoicechat
Methods inherited from interface de.maxhenkel.voicechat.api.events.Event
cancel, isCancellable, isCancelled
-
Method Details
-
mergeAudio
void mergeAudio(short[] audio) Merges the audio into the audio that is captured from the microphone.
Calling this multiple times will merge the audio multiple times into the same audio frame.- Parameters:
audio
- the audio that should get merged
-