Interface OpenALSoundEvent

All Superinterfaces:
ClientEvent, Event
All Known Subinterfaces:
OpenALSoundEvent.Post, OpenALSoundEvent.Pre

public interface OpenALSoundEvent extends ClientEvent
This event is emitted for every audio chunk for every audio channel. These events are meant to be used to modify OpenAL effects.
This specific event is emitted after the position of the sound is set, but before the any other OpenAL calls. Use OpenALSoundEvent.Pre or OpenALSoundEvent.Post get earlier or later events respectively.
  • Method Details

    • getPosition

      @Nullable Position getPosition()
      Returns the position of the sound. This returns null for static sounds.
      Returns:
      the position of the sound
    • getChannelId

      @Nullable UUID getChannelId()
      This returns null for non audio channel sounds, like microphone testing.
      Returns:
      the unique ID of the audio channel
    • getSource

      int getSource()
      Returns:
      the OpenAL source
    • getCategory

      @Nullable String getCategory()
      Returns:
      the category of the sound