Class browser.audio.ContinuousAudioDataStream
All Packages This Package Previous Next
Class browser.audio.ContinuousAudioDataStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.InputStreamBuffer
|
+----browser.audio.AudioDataStream
|
+----browser.audio.ContinuousAudioDataStream
-
public class
ContinuousAudioDataStream
-
extends AudioDataStream
Create a continuous audio stream. This wraps a stream
around an AudioData object, the stream is restarted
at the beginning everytime the end is reached, thus
creating continuous sound.
For example:
AudioData data = AudioData.getAudioData(url);
ContinuousAudioDataStream audiostream = new ContinuousAudioDataStream(data);
AudioPlayer.player.start(audiostream);
-
See Also:
-
AudioPlayer,
AudioData
-
Author:
-
Arthur van Hoff
-
Version:
-
1.6, 14 Mar 1995
-
ContinuousAudioDataStream(AudioData)
-
Create a continuous stream of audio.
-
read()
-
When reaching the EOF, rewind to the beginning.
-
read(byte[], int, int)
-
When reaching the EOF, rewind to the beginning.
ContinuousAudioDataStream
public ContinuousAudioDataStream(AudioData data)
-
Create a continuous stream of audio.
read
public int read()
-
When reaching the EOF, rewind to the beginning.
-
Overrides:
-
read in class InputStreamBuffer
read
public int read(byte buf[],
int pos,
int len)
-
When reaching the EOF, rewind to the beginning.
-
Overrides:
-
read in class InputStreamBuffer
All Packages This Package Previous Next