org.xiph.speex.player

Class Player.Playback

Enclosing Class:
Player
Implemented Interfaces:
Runnable

protected class Player.Playback
extends java.lang.Object
implements Runnable

Playback thread

Field Summary

protected AudioFormat
audioFormat
protected AudioInputStream
audioInputStream
protected InputStream
audioStream
protected byte[]
buffer
protected DataLine.Info
info
protected SourceDataLine
line
protected int
read
protected Thread
thread
protected int
written

Method Summary

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.

Field Details

audioFormat

protected AudioFormat audioFormat

audioInputStream

protected AudioInputStream audioInputStream

audioStream

protected InputStream audioStream

buffer

protected byte[] buffer

info

protected DataLine.Info info

line

protected SourceDataLine line

read

protected int read

thread

protected Thread thread

written

protected int written

Method Details

run

public void run()
The code that runs in the thread and fills the JavaSound playback buffer. Implemented from Runnable interface.

setupSound

protected void setupSound()
Setup the JavaSound System to play the Audio.

start

protected void start()
Start the playback thread which fills the JavaSound playback buffer.

stop

protected void stop()
Stop the playback thread and destroy all resources.

Copyright © 1999-2004 Wimba S.A. All Rights Reserved.