Class Player.Playback

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

protected class Player.Playback extends Object implements Runnable
Playback thread
  • Field Details

    • audioStream

      protected InputStream audioStream
    • audioInputStream

      protected AudioInputStream audioInputStream
    • audioFormat

      protected AudioFormat audioFormat
    • info

      protected DataLine.Info info
    • line

      protected SourceDataLine line
    • buffer

      protected byte[] buffer
    • written

      protected int written
    • read

      protected int read
    • thread

      protected Thread thread
  • Constructor Details

    • Playback

      protected Playback()
  • Method Details

    • 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 Runnable