com.tuneology.avm.mixer
Class NativeMixerSwitch

java.lang.Object
  |
  +--com.tuneology.avm.mixer.NativeMixerElement
        |
        +--com.tuneology.avm.mixer.NativeMixerSwitch
All Implemented Interfaces:
MixerElement, MixerSwitch

public class NativeMixerSwitch
extends NativeMixerElement
implements MixerSwitch

This class represents a switch on an audio mixer.

Version:
$Id: NativeMixerSwitch.java,v 1.1 2003/07/10 19:51:39 xnarf Exp $
Author:
Fran Taylor

Fields inherited from class com.tuneology.avm.mixer.NativeMixerElement
TYPE_INPUT, TYPE_MASTER, TYPE_OTHER, TYPE_PCM, TYPE_SWITCH
 
Fields inherited from interface com.tuneology.avm.mixer.MixerElement
TYPE_INPUT, TYPE_MASTER, TYPE_OTHER, TYPE_PCM, TYPE_SWITCH
 
Constructor Summary
NativeMixerSwitch(NativeMixer m, long e, java.lang.String n)
          Create a new switch.
 
Method Summary
 int getType()
          Returns true if the channel has an input.
 boolean getValue()
          Returns the value of the switch.
 void setValue(boolean b)
          Sets the value of the switch.
static void touch()
           
 
Methods inherited from class com.tuneology.avm.mixer.NativeMixerElement
addEventListener, getName, removeEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tuneology.avm.mixer.MixerElement
addEventListener, getName, removeEventListener
 

Constructor Detail

NativeMixerSwitch

public NativeMixerSwitch(NativeMixer m,
                         long e,
                         java.lang.String n)
Create a new switch.
Parameters:
m - the parent mixer
e - a platform-specific value.
n - the name of the switch
Method Detail

getValue

public boolean getValue()
                 throws java.io.IOException
Returns the value of the switch.
Specified by:
getValue in interface MixerSwitch
Returns:
the value of the switch.
Throws:
java.io.IOException -  

getType

public int getType()
Description copied from interface: MixerElement
Returns true if the channel has an input.
Specified by:
getType in interface MixerSwitch
Overrides:
getType in class NativeMixerElement

setValue

public void setValue(boolean b)
              throws java.io.IOException
Sets the value of the switch.
Specified by:
setValue in interface MixerSwitch
Parameters:
b - the new value
Throws:
java.io.IOException -  

touch

public static void touch()