uk.org.toot.audio.server
Class JavaSoundAudioServer.JavaSoundAudioOutput

java.lang.Object
  extended by uk.org.toot.audio.server.JavaSoundAudioServer.JavaSoundAudioLine
      extended by uk.org.toot.audio.server.JavaSoundAudioServer.JavaSoundAudioOutput
All Implemented Interfaces:
uk.org.toot.audio.core.AudioProcess, AudioLine, AudioSyncLine, uk.org.toot.audio.server.IOAudioProcess
Enclosing class:
JavaSoundAudioServer

protected class JavaSoundAudioServer.JavaSoundAudioOutput
extends JavaSoundAudioServer.JavaSoundAudioLine


Field Summary
protected  long framesWritten
           
protected  javax.sound.sampled.DataLine.Info infoOut
           
protected  javax.sound.sampled.SourceDataLine lineOut
           
 
Fields inherited from class uk.org.toot.audio.server.JavaSoundAudioServer.JavaSoundAudioLine
channelFormat, format, label, latencyFrames, mixerInfo
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
JavaSoundAudioServer.JavaSoundAudioOutput(javax.sound.sampled.AudioFormat format, javax.sound.sampled.Mixer.Info info, java.lang.String label)
           
 
Method Summary
 void close()
           
 boolean isActive()
           
 void open()
           
 int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
           
 void start()
           
 void stop()
           
 
Methods inherited from class uk.org.toot.audio.server.JavaSoundAudioServer.JavaSoundAudioLine
getChannelFormat, getLatencyFrames, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineOut

protected javax.sound.sampled.SourceDataLine lineOut

infoOut

protected javax.sound.sampled.DataLine.Info infoOut

framesWritten

protected long framesWritten
Constructor Detail

JavaSoundAudioServer.JavaSoundAudioOutput

public JavaSoundAudioServer.JavaSoundAudioOutput(javax.sound.sampled.AudioFormat format,
                                                 javax.sound.sampled.Mixer.Info info,
                                                 java.lang.String label)
                                          throws javax.sound.sampled.LineUnavailableException
Throws:
javax.sound.sampled.LineUnavailableException
Method Detail

open

public void open()
          throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in class JavaSoundAudioServer.JavaSoundAudioLine
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in class JavaSoundAudioServer.JavaSoundAudioLine

close

public void close()

processAudio

public int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)

isActive

public boolean isActive()
Specified by:
isActive in class JavaSoundAudioServer.JavaSoundAudioLine