|
|||||||||
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.tritonus.share.sampled.convert.TAudioInputStream
org.tritonus.share.sampled.convert.TSynchronousFilteredAudioInputStream
public abstract class TSynchronousFilteredAudioInputStream
Base class for types of audio filter/converter that translate one frame to another frame.
It provides all the transformation of frame sizes.
It does NOT handle different sample rates of original stream and this stream !
Constructor Summary | |
---|---|
TSynchronousFilteredAudioInputStream(AudioInputStream audioInputStream,
AudioFormat newFormat)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.tritonus.share.sampled.convert.TAudioInputStream |
---|
properties |
Methods inherited from class javax.sound.sampled.AudioInputStream |
---|
getFormat, getFrameLength, read |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TSynchronousFilteredAudioInputStream(AudioInputStream audioInputStream, AudioFormat newFormat)
Method Detail |
---|
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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |