|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
javax.sound.sampled.AudioInputStream
org.kc7bfi.jflac.sound.spi.RingedAudioInputStream
org.kc7bfi.jflac.sound.spi.Flac2PcmAudioInputStream
public class Flac2PcmAudioInputStream
Converts an Flac bitstream into a PCM 16bits/sample audio stream.
Field Summary |
---|
Fields inherited from class org.kc7bfi.jflac.sound.spi.RingedAudioInputStream |
---|
buffer, DEFAULT_BUFFER_SIZE, in |
Fields inherited from class javax.sound.sampled.AudioInputStream |
---|
format, frameLength, framePos, frameSize |
Constructor Summary | |
---|---|
Flac2PcmAudioInputStream(InputStream in,
AudioFormat format,
long length)
Constructor. |
|
Flac2PcmAudioInputStream(InputStream in,
AudioFormat format,
long length,
int size)
Constructor. |
Method Summary | |
---|---|
protected void |
fill()
called from the super class whenever more PCM data is needed. |
Metadata[] |
getMetaData()
|
StreamInfo |
getStreamInfo()
|
protected void |
initDecoder()
Initialize the Flac Decoder after reading the Header. |
void |
processPCM(ByteData pcm)
Process the decoded PCM bytes. |
void |
processStreamInfo(StreamInfo streamInfo)
Process the StreamInfo block. |
Methods inherited from class org.kc7bfi.jflac.sound.spi.RingedAudioInputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class javax.sound.sampled.AudioInputStream |
---|
getFormat, getFrameLength, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Flac2PcmAudioInputStream(InputStream in, AudioFormat format, long length)
in
- the underlying input stream.format
- the target format of this stream's audio data.length
- the length in sample frames of the data in this stream.public Flac2PcmAudioInputStream(InputStream in, AudioFormat format, long length, int size)
in
- the underlying input stream.format
- the target format of this stream's audio data.length
- the length in sample frames of the data in this stream.size
- the buffer size.Method Detail |
---|
protected void fill() throws IOException
fill
in class RingedAudioInputStream
IOException
protected void initDecoder() throws IOException
IOException
public void processStreamInfo(StreamInfo streamInfo)
processStreamInfo
in interface PCMProcessor
streamInfo
- the StreamInfo blockPCMProcessor.processStreamInfo(org.kc7bfi.jflac.metadata.StreamInfo)
public void processPCM(ByteData pcm)
processPCM
in interface PCMProcessor
pcm
- The decoded PCM dataPCMProcessor.processPCM(ByteData)
public StreamInfo getStreamInfo()
public Metadata[] getMetaData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |