Interface OpenALSoundEvent
- All Superinterfaces:
ClientEvent
,Event
- All Known Subinterfaces:
OpenALSoundEvent.Post
,OpenALSoundEvent.Pre
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
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.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
This event is emitted after all OpenAL calls by the voice chat and the audio is added to the buffer queue.static interface
This event is emitted before any OpenAL calls were made by the voice chat. -
Method Summary
Modifier and TypeMethodDescriptionThis returnsnull
for non audio channel sounds, like microphone testing.Returns the position of the sound.int
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
-
getPosition
Returns the position of the sound. This returnsnull
for static sounds.- Returns:
- the position of the sound
-
getChannelId
This returnsnull
for non audio channel sounds, like microphone testing.- Returns:
- the unique ID of the audio channel
-
getSource
int getSource()- Returns:
- the OpenAL source
-
getCategory
- Returns:
- the category of the sound
-