| sun.audio.AudioDataStream sun.audio.ContinuousAudioDataStream
ContinuousAudioDataStream | public class ContinuousAudioDataStream extends AudioDataStream (Code) | | 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 See Also: AudioData author: Arthur van Hoff version: 1.13, 08/19/02 |
Method Summary | |
public int | read() When reaching the EOF, rewind to the beginning. | public int | read(byte buf, int pos, int len) When reaching the EOF, rewind to the beginning. |
ContinuousAudioDataStream | public ContinuousAudioDataStream(AudioData data)(Code) | | Create a continuous stream of audio.
|
read | public int read()(Code) | | When reaching the EOF, rewind to the beginning.
|
read | public int read(byte buf, int pos, int len)(Code) | | When reaching the EOF, rewind to the beginning.
|
|
|