public interface TarsosDSPAudioInputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this audio input stream and releases any system resources associated
with the stream.
|
TarsosDSPAudioFormat |
getFormat() |
long |
getFrameLength() |
int |
read(byte[] b,
int off,
int len)
Reads up to a specified maximum number of bytes of data from the audio
stream, putting them into the given byte array.
|
long |
skip(long bytesToSkip)
Skip a number of bytes before reading the remaining bytes.
|
long skip(long bytesToSkip) throws java.io.IOException
bytesToSkip - The number of bytes to skip.java.io.IOException - If the underlying if an input or output error occurs
#see readint read(byte[] b,
int off,
int len)
throws java.io.IOException
This method will always read an integral number of frames.
If len does not specify an integral number
of frames, a maximum of len - (len % frameSize)
bytes will be read.
b - the buffer into which the data is readoff - the offset, from the beginning of array b, at which
the data will be writtenlen - the maximum number of bytes to readjava.io.IOException - if an input or output error occursskip(long)void close()
throws java.io.IOException
java.io.IOException - if an input or output error occursTarsosDSPAudioFormat getFormat()
long getFrameLength()