uk.org.toot.audio.server
Class JavaSoundAudioServer.JavaSoundAudioOutput
java.lang.Object
uk.org.toot.audio.server.JavaSoundAudioServer.JavaSoundAudioLine
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 interface uk.org.toot.audio.core.AudioProcess |
AUDIO_DISCONNECT, AUDIO_OK |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lineOut
protected javax.sound.sampled.SourceDataLine lineOut
infoOut
protected javax.sound.sampled.DataLine.Info infoOut
framesWritten
protected long framesWritten
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
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