Package de.maxhenkel.voicechat.api.opus
Interface OpusDecoder
public interface OpusDecoder
Instances can be obtained by calling
NOTE: The bukkit based version of the voice chat does not include Opus natives.
VoicechatApi.createDecoder().
NOTE: The bukkit based version of the voice chat does not include Opus natives.
-
Method Details
-
decode
short[] decode(@Nullable byte[] data) Decodes opus encoded audio data to 16 bit PCM audio- Parameters:
data- the opus encoded data- Returns:
- the 16 bit PCM audio data
-
resetState
void resetState()Resets the decoders state -
isClosed
boolean isClosed()- Returns:
- if the decoder is closed
-
close
void close()Closes the decoder Not doing this would result in a memory leak
-