Interface MergeClientSoundEvent

All Superinterfaces:
ClientEvent, Event

public interface MergeClientSoundEvent extends ClientEvent
This event is emitted before the 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 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