jjdh API

dh.javax.sound
Class StandardAudioProxy

java.lang.Object
  extended by dh.javax.sound.StandardAudioProxy
All Implemented Interfaces:
AudioProxy, Runnable

public class StandardAudioProxy
extends Object
implements AudioProxy, Runnable


Field Summary
protected  SourceDataLine dataLine
           
protected  StreamRunnable streamRunnable
           
 
Constructor Summary
StandardAudioProxy(StreamRunnable streamRunnable)
           
 
Method Summary
 FloatControl getVolumeControl()
           
 boolean isAlive()
          Indicates if this proxy represents a played audio (notice that the result of this method may change over the time).
 void run()
           
 void stop()
          Stops the sound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

streamRunnable

protected final StreamRunnable streamRunnable

dataLine

protected final SourceDataLine dataLine
Constructor Detail

StandardAudioProxy

public StandardAudioProxy(StreamRunnable streamRunnable)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

isAlive

public boolean isAlive()
Description copied from interface: AudioProxy
Indicates if this proxy represents a played audio (notice that the result of this method may change over the time).

Specified by:
isAlive in interface AudioProxy

stop

public void stop()
Description copied from interface: AudioProxy
Stops the sound.

Specified by:
stop in interface AudioProxy

getVolumeControl

public FloatControl getVolumeControl()
Specified by:
getVolumeControl in interface AudioProxy
Returns:
a FloatControl which represents the volumne, or null if a error occurs

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.