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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeMixerSwitch
public NativeMixerSwitch(NativeMixer m,
long e,
java.lang.String n)
- Create a new switch.
- Parameters:
m
- the parent mixere
- a platform-specific value.n
- the name of the switch
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()