public abstract class TSynchronousFilteredAudioInputStream extends TAudioInputStream implements FloatSampleInput
Constructor and Description |
---|
TSynchronousFilteredAudioInputStream(AudioInputStream audioInputStream,
AudioFormat newFormat) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
getChannels() |
AudioFormat |
getOriginalFormat() |
AudioInputStream |
getOriginalStream() |
float |
getSampleRate() |
boolean |
isDone()
Determine if this stream has reached its end.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] abData,
int nOffset,
int nLength)
Read nLength bytes that will be the converted samples
of the original InputStream.
|
void |
read(FloatSampleBuffer buffer)
Fill the entire buffer with audio data.
|
void |
read(FloatSampleBuffer buffer,
int offset,
int sampleCount)
read sampleCount converted samples at the specified offset.
|
void |
reset() |
long |
skip(long nSkip) |
properties
getFormat, getFrameLength, read
public TSynchronousFilteredAudioInputStream(AudioInputStream audioInputStream, AudioFormat newFormat)
public int read() throws java.io.IOException
read
in class AudioInputStream
java.io.IOException
public AudioInputStream getOriginalStream()
public AudioFormat getOriginalFormat()
public final int read(byte[] abData, int nOffset, int nLength) throws java.io.IOException
read
in class AudioInputStream
java.io.IOException
public long skip(long nSkip) throws java.io.IOException
skip
in class AudioInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class AudioInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class AudioInputStream
java.io.IOException
public void mark(int readlimit)
mark
in class AudioInputStream
public void reset() throws java.io.IOException
reset
in class AudioInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class AudioInputStream
public int getChannels()
getChannels
in interface FloatSampleInput
public float getSampleRate()
getSampleRate
in interface FloatSampleInput
public boolean isDone()
FloatSampleInput
isDone
in interface FloatSampleInput
public void read(FloatSampleBuffer buffer, int offset, int sampleCount)
read
in interface FloatSampleInput
buffer
- the buffer to be filledoffset
- the start index, in samples, where to start filling the
buffersampleCount
- the number fo samples to fill into the bufferpublic void read(FloatSampleBuffer buffer)
FloatSampleInput
The buffer's channel count and sample rate may not be changed by the implementation of this method.
read
in interface FloatSampleInput
buffer
- the buffer to be filled