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

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

protected class JavaSoundAudioServer.JavaSoundAudioInput
extends JavaSoundAudioServer.JavaSoundAudioLine


Field Summary
protected  long framesRead
           
protected  javax.sound.sampled.DataLine.Info infoIn
           
protected  javax.sound.sampled.TargetDataLine lineIn
           
protected  uk.org.toot.audio.core.AudioBuffer.MetaInfo metaInfo
           
 
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.JavaSoundAudioInput(javax.sound.sampled.AudioFormat format, javax.sound.sampled.Mixer.Info info, java.lang.String label, java.lang.String location)
           
 
Method Summary
 void close()
           
 void flush()
           
 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

lineIn

protected javax.sound.sampled.TargetDataLine lineIn

infoIn

protected javax.sound.sampled.DataLine.Info infoIn

metaInfo

protected uk.org.toot.audio.core.AudioBuffer.MetaInfo metaInfo

framesRead

protected long framesRead
Constructor Detail

JavaSoundAudioServer.JavaSoundAudioInput

public JavaSoundAudioServer.JavaSoundAudioInput(javax.sound.sampled.AudioFormat format,
                                                javax.sound.sampled.Mixer.Info info,
                                                java.lang.String label,
                                                java.lang.String location)
                                         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()

flush

public void flush()

processAudio

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

isActive

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