public abstract class AbstractMicrophone extends java.lang.Object implements IMicrophone
AbstractMicrophone
- base IMicrophone
implementation.IMicrophone.IListener, IMicrophone.ListenerAdapter
Constructor and Description |
---|
AbstractMicrophone()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IMicrophone.IListener listener)
Adds a new listener.
|
protected void |
fireOnAudioData(MediaData data)
Fires 'onAudioData' on all listeners (for use in subclasses).
|
void |
removeListener(IMicrophone.IListener listener)
Removes the listener.
|
public final void addListener(IMicrophone.IListener listener)
IMicrophone
addListener
in interface IMicrophone
listener
- listener to addpublic final void removeListener(IMicrophone.IListener listener)
IMicrophone
removeListener
in interface IMicrophone
listener
- listener to removeprotected final void fireOnAudioData(MediaData data)
data
-