Interface OpusDecoder


public interface OpusDecoder
Instances can be obtained by calling VoicechatApi.createDecoder().
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the decoder Not doing this would result in a memory leak
    short[]
    decode(byte[] data)
    Decodes opus encoded audio data to 16 bit PCM audio
    boolean
     
    void
    Resets the decoders state
  • 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