dh.javax.sound
Class StandardAudioProxy
java.lang.Object
dh.javax.sound.StandardAudioProxy
- All Implemented Interfaces:
- AudioProxy, Runnable
public class StandardAudioProxy
- extends Object
- implements AudioProxy, Runnable
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 |
streamRunnable
protected final StreamRunnable streamRunnable
dataLine
protected final SourceDataLine dataLine
StandardAudioProxy
public StandardAudioProxy(StreamRunnable streamRunnable)
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
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.