org.kc7bfi.jflac.util
Class PCMDecoder

java.lang.Object
  extended by org.kc7bfi.jflac.util.PCMDecoder

public class PCMDecoder
extends java.lang.Object

This class is a PCM FLAC decoder.


Constructor Summary
PCMDecoder(StreamInfo streamInfo)
          The constructor.
 
Method Summary
 ByteData getFrame(Frame frame, ChannelData[] channelData)
          Write a WAV frame record.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCMDecoder

public PCMDecoder(StreamInfo streamInfo)
The constructor.

Parameters:
streamInfo - The FLAC stream info
Method Detail

getFrame

public ByteData getFrame(Frame frame,
                         ChannelData[] channelData)
                  throws java.io.IOException
Write a WAV frame record.

Parameters:
frame - The FLAC frame
channelData - The decoded channel data
Returns:
returns the decoded buffer data
Throws:
java.io.IOException - Thrown if error writing to output channel