Interface ClientSoundEvent
- All Superinterfaces:
 ClientEvent,Event
This event is emitted before the client encodes the audio and sends it to the server.
- 
Method Summary
Modifier and TypeMethodDescriptionshort[]The unencoded audio data.booleanvoidsetRawAudio(short[] rawAudio) Overrides the actual audio data that's sent to the server.Methods inherited from interface de.maxhenkel.voicechat.api.events.ClientEvent
getVoicechatMethods inherited from interface de.maxhenkel.voicechat.api.events.Event
cancel, isCancellable, isCancelled 
- 
Method Details
- 
getRawAudio
short[] getRawAudio()The unencoded audio data.
Returns an empty array in case of the end of transmission- Returns:
 - the raw 16 bit PCM audio frame
 
 - 
setRawAudio
void setRawAudio(short[] rawAudio) Overrides the actual audio data that's sent to the server.- Parameters:
 rawAudio- the raw 16 bit PCM audio frame
 - 
isWhispering
boolean isWhispering()- Returns:
 - if the player is whispering
 
 
 -