com.tuneology.avm.mixer
Class NativeMixerElement
java.lang.Object
|
+--com.tuneology.avm.mixer.NativeMixerElement
- All Implemented Interfaces:
- MixerElement
- Direct Known Subclasses:
- NativeMixerChannel, NativeMixerSwitch
- public abstract class NativeMixerElement
- extends java.lang.Object
- implements MixerElement
This abstract class represents an element, such as a channel or a switch, on
an audio mixer.
- Version:
- $Id: NativeMixerElement.java,v 1.1 2003/07/10 19:51:39 xnarf Exp $
- Author:
- Fran Taylor
Method Summary |
void |
addEventListener(MixerListener listener)
Registers listener so that it will receive notifications
when its element changes. |
java.lang.String |
getName()
Returns the name of the mixer element. |
abstract int |
getType()
Returns true if the channel has an input. |
void |
removeEventListener(MixerListener listener)
Unregisters listener so that it will no longer receive notifications
when its element changes. |
static void |
touch()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_PCM
public static final int TYPE_PCM
TYPE_INPUT
public static final int TYPE_INPUT
TYPE_MASTER
public static final int TYPE_MASTER
TYPE_SWITCH
public static final int TYPE_SWITCH
TYPE_OTHER
public static final int TYPE_OTHER
NativeMixerElement
protected NativeMixerElement(NativeMixer m,
long e,
java.lang.String n)
- Create a new element.
- Parameters:
m
- the parent mixere
- a platform-specific value.n
- the name of the element
getName
public java.lang.String getName()
- Returns the name of the mixer element.
- Specified by:
getName
in interface MixerElement
- Returns:
- the name of the mixer element.
addEventListener
public void addEventListener(MixerListener listener)
- Registers listener so that it will receive notifications
when its element changes.
- Specified by:
addEventListener
in interface MixerElement
- Parameters:
listener
- the MixerListener to register.
removeEventListener
public void removeEventListener(MixerListener listener)
- Unregisters listener so that it will no longer receive notifications
when its element changes.
- Specified by:
removeEventListener
in interface MixerElement
- Parameters:
listener
- the MixerListener to un-register.
getType
public abstract int getType()
- Returns true if the channel has an input.
- Specified by:
getType
in interface MixerElement
touch
public static void touch()