Interface ClientAudioChannel

All Known Subinterfaces:
ClientEntityAudioChannel, ClientLocationalAudioChannel, ClientStaticAudioChannel

public interface ClientAudioChannel
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    play(short[] rawAudio)
    Plays this audio data on this audio channel
    void
    setCategory(String category)
    Make sure you registered your category before using it.
  • Method Details

    • getId

      UUID getId()
      Returns:
      the ID of the channel
    • play

      void play(short[] rawAudio)
      Plays this audio data on this audio channel
      Parameters:
      rawAudio - the raw 16 bit PCM audio frame
    • getCategory

      @Nullable String getCategory()
      Returns:
      the category ID of the audio channel
    • setCategory

      void setCategory(@Nullable String category)
      Make sure you registered your category before using it. See VoicechatServerApi.registerVolumeCategory(VolumeCategory).
      Parameters:
      category - the category of the audio channel