local.media
Class AudioOutput

java.lang.Object
  |
  +--local.media.AudioOutput

public class AudioOutput
extends java.lang.Object

AudioOutput allows the access of system audio output in pure-java manner. It uses the javax.sound library (package).


Constructor Summary
AudioOutput()
          Constructs an AudioOutput with audio_format=[8000 Hz, ULAW, 8bit, Mono]
AudioOutput(javax.sound.sampled.AudioFormat audio_format)
          Constructs an AudioOutput
 
Method Summary
static void closeAudioLine()
          Closes the static system audio output line
 java.io.OutputStream getOuputStream()
          Gets the audio OuputStream
static void initAudioLine()
          Init the static system audio output line
 void play()
          Starts playing
 void stop()
          Stops playing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioOutput

public AudioOutput()
Constructs an AudioOutput with audio_format=[8000 Hz, ULAW, 8bit, Mono]

AudioOutput

public AudioOutput(javax.sound.sampled.AudioFormat audio_format)
Constructs an AudioOutput
Method Detail

initAudioLine

public static void initAudioLine()
Init the static system audio output line

closeAudioLine

public static void closeAudioLine()
Closes the static system audio output line

getOuputStream

public java.io.OutputStream getOuputStream()
Gets the audio OuputStream

play

public void play()
Starts playing

stop

public void stop()
Stops playing