org.xiph.speex.player
Class Player.Playback

java.lang.Object
  extended by org.xiph.speex.player.Player.Playback
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Player

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

Playback thread


Field Summary
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
           
 
Constructor Summary
protected Player.Playback()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

audioStream

protected java.io.InputStream audioStream

audioInputStream

protected javax.sound.sampled.AudioInputStream audioInputStream

audioFormat

protected javax.sound.sampled.AudioFormat audioFormat

info

protected javax.sound.sampled.DataLine.Info info

line

protected javax.sound.sampled.SourceDataLine line

buffer

protected byte[] buffer

written

protected int written

read

protected int read

thread

protected java.lang.Thread thread
Constructor Detail

Player.Playback

protected Player.Playback()
Method Detail

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.


setupSound

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


run

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

Specified by:
run in interface java.lang.Runnable


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