Class OpusChunkDecoder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Frees up all held resources.
      void decode​(byte[] encoded, java.nio.ShortBuffer buffer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpusChunkDecoder

        public OpusChunkDecoder​(AudioDataFormat format)
        Parameters:
        format - Source audio format.
    • Method Detail

      • decode

        public void decode​(byte[] encoded,
                           java.nio.ShortBuffer buffer)
        Specified by:
        decode in interface AudioChunkDecoder
        Parameters:
        encoded - Encoded bytes
        buffer - Output buffer for the PCM data