com.tuneology.avm.mixer
Interface MixerElement

All Known Subinterfaces:
MixerChannel, MixerSwitch
All Known Implementing Classes:
NativeMixerElement

public interface MixerElement

This abstract class represents an element, such as a channel or a switch, on an audio mixer.

Version:
$Id: MixerElement.java,v 1.3 2003/07/10 19:52:12 xnarf Exp $
Author:
Fran Taylor

Field Summary
static int TYPE_INPUT
           
static int TYPE_MASTER
           
static int TYPE_OTHER
           
static int TYPE_PCM
           
static int TYPE_SWITCH
           
 
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.
 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.
 

Field Detail

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
Method Detail

getName

public java.lang.String getName()
Returns the name of the mixer element.
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.
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.
Parameters:
listener - the MixerListener to un-register.

getType

public int getType()
Returns true if the channel has an input.