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) |
propertiesgetFormat, getFrameLength, readpublic TSynchronousFilteredAudioInputStream(AudioInputStream audioInputStream, AudioFormat newFormat)
public int read()
throws java.io.IOException
read in class AudioInputStreamjava.io.IOExceptionpublic AudioInputStream getOriginalStream()
public AudioFormat getOriginalFormat()
public final int read(byte[] abData,
int nOffset,
int nLength)
throws java.io.IOException
read in class AudioInputStreamjava.io.IOExceptionpublic long skip(long nSkip)
throws java.io.IOException
skip in class AudioInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class AudioInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class AudioInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class AudioInputStreampublic void reset()
throws java.io.IOException
reset in class AudioInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class AudioInputStreampublic int getChannels()
getChannels in interface FloatSampleInputpublic float getSampleRate()
getSampleRate in interface FloatSampleInputpublic boolean isDone()
FloatSampleInputisDone in interface FloatSampleInputpublic void read(FloatSampleBuffer buffer, int offset, int sampleCount)
read in interface FloatSampleInputbuffer - 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)
FloatSampleInputThe buffer's channel count and sample rate may not be changed by the implementation of this method.
read in interface FloatSampleInputbuffer - the buffer to be filled