Class browser.audio.AudioStreamSequence
All Packages This Package Previous Next
Class browser.audio.AudioStreamSequence
java.lang.Object
|
+----java.io.InputStream
|
+----browser.audio.AudioStreamSequence
-
public class
AudioStreamSequence
-
extends InputStream
Convert a sequence of input streams into a single InputStream.
This class can be used to play two audio clips in sequence.
For example:
Vector v = new Vector();
v.addElement(audiostream1);
v.addElement(audiostream2);
AudioStreamSequence audiostream = new AudioStreamSequence(v.elements());
AudioPlayer.player.start(audiostream);
-
See Also:
-
AudioPlayer
-
Author:
-
Arthur van Hoff
-
Version:
-
1.9, 14 Mar 1995
-
AudioStreamSequence(Enumeration)
-
Create an AudioStreamSequence given an
enumeration of streams.
-
read()
-
Read, when reaching an EOF, flip to the next stream.
-
read(byte[], int, int)
-
Read, when reaching an EOF, flip to the next stream.
AudioStreamSequence
public AudioStreamSequence(Enumeration e)
-
Create an AudioStreamSequence given an
enumeration of streams.
read
public int read()
-
Read, when reaching an EOF, flip to the next stream.
-
Overrides:
-
read in class InputStream
read
public int read(byte buf[],
int pos,
int len)
-
Read, when reaching an EOF, flip to the next stream.
-
Overrides:
-
read in class InputStream
All Packages This Package Previous Next