public abstract class TAsynchronousFilteredAudioInputStream extends TAudioInputStream implements TCircularBuffer.Trigger
| Modifier and Type | Field and Description |
|---|---|
protected TCircularBuffer |
m_circularBuffer |
format, frameLength, framePos, frameSize| Constructor and Description |
|---|
TAsynchronousFilteredAudioInputStream(AudioFormat outputFormat,
long lLength)
Constructor.
|
TAsynchronousFilteredAudioInputStream(AudioFormat outputFormat,
long lLength,
int nBufferSize,
int nMinAvailable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected TCircularBuffer |
getCircularBuffer()
Returns the circular buffer.
|
void |
mark(int nReadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] abData) |
int |
read(byte[] abData,
int nOffset,
int nLength) |
void |
reset() |
long |
skip(long lSkip) |
protected boolean |
writeMore()
Check if writing more data to the circular buffer is recommanded.
|
properties, setPropertygetFormat, getFrameLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected TCircularBuffer m_circularBuffer
public TAsynchronousFilteredAudioInputStream(AudioFormat outputFormat, long lLength)
lLength - length of this stream in frames. May be
AudioSystem.NOT_SPECIFIED.public TAsynchronousFilteredAudioInputStream(AudioFormat outputFormat, long lLength, int nBufferSize, int nMinAvailable)
lLength - length of this stream in frames. May be
AudioSystem.NOT_SPECIFIED.nBufferSize - size of the circular buffer in bytes.protected TCircularBuffer getCircularBuffer()
protected boolean writeMore()
public int read()
throws IOException
read in class AudioInputStreamIOExceptionpublic int read(byte[] abData)
throws IOException
read in class AudioInputStreamIOExceptionpublic int read(byte[] abData,
int nOffset,
int nLength)
throws IOException
read in class AudioInputStreamIOExceptionpublic long skip(long lSkip)
throws IOException
skip in class AudioInputStreamIOExceptionpublic int available()
throws IOException
available in class AudioInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AudioInputStreamIOExceptionpublic boolean markSupported()
markSupported in class AudioInputStreampublic void mark(int nReadLimit)
mark in class AudioInputStreampublic void reset()
throws IOException
reset in class AudioInputStreamIOExceptionCopyright © 2016. All Rights Reserved.