Class FlacSubFrameReader


  • public class FlacSubFrameReader
    extends java.lang.Object
    Contains methods for reading a FLAC subframe
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void readSubFrame​(BitStreamReader reader, FlacStreamInfo streamInfo, FlacFrameInfo frameInfo, int[] sampleBuffer, int channel, int[] temporaryBuffer)
      Reads and decodes one subframe (a channel of a frame)
      • Methods inherited from class java.lang.Object

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

      • FlacSubFrameReader

        public FlacSubFrameReader()
    • Method Detail

      • readSubFrame

        public static void readSubFrame​(BitStreamReader reader,
                                        FlacStreamInfo streamInfo,
                                        FlacFrameInfo frameInfo,
                                        int[] sampleBuffer,
                                        int channel,
                                        int[] temporaryBuffer)
                                 throws java.io.IOException
        Reads and decodes one subframe (a channel of a frame)
        Parameters:
        reader - Bit stream reader
        streamInfo - Stream global info
        frameInfo - Current frame info
        sampleBuffer - Output buffer for the (possibly delta) decoded samples of this subframe
        channel - The index of the current channel
        temporaryBuffer - Temporary working buffer of size at least 32
        Throws:
        java.io.IOException - On read error