Package com.sun.speech.engine
Class BaseAudioManager
- java.lang.Object
-
- com.sun.speech.engine.BaseAudioManager
-
public class BaseAudioManager extends java.lang.Object
Supports the JSAPI 1.0AudioManager
interface. Actual JSAPI implementations might want to extend or modify this implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection
listeners
List ofAudioListeners
registered forAudioEvents
on this object.
-
Constructor Summary
Constructors Constructor Description BaseAudioManager()
Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAudioListener(AudioListener listener)
Requests notification ofAudioEvents
from theAudioManager
.void
removeAudioListener(AudioListener listener)
Removes anAudioListener
from the list ofAudioListeners
.
-
-
-
Method Detail
-
addAudioListener
public void addAudioListener(AudioListener listener)
Requests notification ofAudioEvents
from theAudioManager
.- Parameters:
listener
- the listener to add
-
removeAudioListener
public void removeAudioListener(AudioListener listener)
Removes anAudioListener
from the list ofAudioListeners
.- Parameters:
listener
- the listener to remove
-
-