public class Flac2PcmAudioInputStream extends RingedAudioInputStream implements PCMProcessor
buffer, DEFAULT_BUFFER_SIZE, informat, frameLength, framePos, frameSize| Constructor and Description |
|---|
Flac2PcmAudioInputStream(InputStream in,
AudioFormat format,
long length)
Constructor.
|
Flac2PcmAudioInputStream(InputStream in,
AudioFormat format,
long length,
int size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
available, close, mark, markSupported, read, read, reset, skipgetFormat, getFrameLength, readpublic 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.protected void fill()
throws IOException
fill in class RingedAudioInputStreamIOExceptionprotected void initDecoder()
throws IOException
IOExceptionpublic void processStreamInfo(StreamInfo streamInfo)
processStreamInfo in interface PCMProcessorstreamInfo - the StreamInfo blockPCMProcessor.processStreamInfo(org.jflac.metadata.StreamInfo)public void processPCM(ByteData pcm)
processPCM in interface PCMProcessorpcm - The decoded PCM dataPCMProcessor.processPCM(ByteData)public StreamInfo getStreamInfo()
public Metadata[] getMetaData()
Copyright © 2004–2017. All rights reserved.