protected class Player.Playback
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected javax.sound.sampled.AudioFormat |
audioFormat |
protected javax.sound.sampled.AudioInputStream |
audioInputStream |
protected java.io.InputStream |
audioStream |
protected byte[] |
buffer |
protected javax.sound.sampled.DataLine.Info |
info |
protected javax.sound.sampled.SourceDataLine |
line |
protected int |
read |
protected java.lang.Thread |
thread |
protected int |
written |
Modifier | Constructor and Description |
---|---|
protected |
Playback() |
Modifier and Type | Method and Description |
---|---|
void |
run()
The code that runs in the thread and fills the JavaSound playback buffer.
|
protected void |
setupSound()
Setup the JavaSound System to play the Audio.
|
protected void |
start()
Start the playback thread which fills the JavaSound playback buffer.
|
protected void |
stop()
Stop the playback thread and destroy all resources.
|
protected java.io.InputStream audioStream
protected javax.sound.sampled.AudioInputStream audioInputStream
protected javax.sound.sampled.AudioFormat audioFormat
protected javax.sound.sampled.DataLine.Info info
protected javax.sound.sampled.SourceDataLine line
protected byte[] buffer
protected int written
protected int read
protected java.lang.Thread thread
protected void start()
protected void stop()
protected void setupSound()
public void run()
run
in interface java.lang.Runnable
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.