Class PcmChunkDecoder

    • 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

      • PcmChunkDecoder

        public PcmChunkDecoder​(AudioDataFormat format,
                               boolean bigEndian)
        Parameters:
        format - Source audio format.
        bigEndian - Whether the samples are in big-endian format (as opposed to little-endian).
    • 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