| java.lang.Object java.io.InputStream javax.sound.sampled.AudioInputStream com.db.media.audio.MixingAudioInputStream
MixingAudioInputStream | public class MixingAudioInputStream extends AudioInputStream (Code) | | This class takes a collection of AudioInputStreams and mixes
them together. Being a subclass of AudioInputStream itself,
reading from instances of this class behaves as if the mixdown
result of the input streams is read.
|
Method Summary | |
public boolean | addAudioInputStream(AudioInputStream audioStream) | public int | available() The minimum of available() of all input stream is calculated and returned. | public void | close() Calls close() on all input streams and closes itself. | public long | getFrameLength() The maximum of the frame length of the input stream is calculated and returned. | public void | mark(int nReadLimit) Calls mark() on all input streams. | public boolean | markSupported() returns true if all input stream return true for markSupported(). | public int | read() | public int | read(byte[] abData, int nOffset, int nLength) | public boolean | removeAudioInputStream(AudioInputStream audioStream) | public void | reset() | public long | skip(long lLength) calls skip() on all input streams. |
available | public int available() throws IOException(Code) | | The minimum of available() of all input stream is calculated and returned.
|
close | public void close() throws IOException(Code) | | Calls close() on all input streams and closes itself.
|
getFrameLength | public long getFrameLength()(Code) | | The maximum of the frame length of the input stream is calculated and returned.
If at least one of the input streams has length
AudioInputStream.NOT_SPECIFIED , this value is returned.
|
mark | public void mark(int nReadLimit)(Code) | | Calls mark() on all input streams.
|
markSupported | public boolean markSupported()(Code) | | returns true if all input stream return true for markSupported().
|
read | public int read(byte[] abData, int nOffset, int nLength) throws IOException(Code) | | |
reset | public void reset() throws IOException(Code) | | Calls reset() on all input streams and resets itself
|
skip | public long skip(long lLength) throws IOException(Code) | | calls skip() on all input streams. There is no way to assure that the number of
bytes really skipped is the same for all input streams. Due to that, this
method always returns the passed value. In other words: the return value
is useless (better ideas appreciated).
|
|
|