com.tuneology.avm.mixer
Class NativeMixerChannel

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

public class NativeMixerChannel
extends NativeMixerElement
implements MixerChannel

This class represents a channel on an audio mixer.

Version:
$Id: NativeMixerChannel.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
 
Method Summary
 int getType()
          Returns true if the channel has an input.
 Volume getVolume()
          Returns the current volume setting.
 VolumeRange getVolumeRange()
          Returns the range of volume settings for the channel.
 boolean hasMute()
          Returns true if the channel supports muting.
 boolean hasRecord()
          Returns true if the channel supports recording.
 boolean isMute()
          Returns the state of the mute bit.
 boolean isRecord()
          Returns the state of the record bit for the channel.
 boolean isStereo()
          Returns true if the channel is stereo.
 void setMute(boolean mute)
          Sets the mute bit.
 void setRecord(boolean rec)
          Sets the record bit for the channel.
 void setVolume(Volume vol)
          Sets the volume.
 void toggleMute()
          Toggles the state of the mute bit.
 void toggleRecord()
          Toggles the state of the record bit.
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
 

Method Detail

setVolume

public void setVolume(Volume vol)
               throws java.io.IOException
Sets the volume.
Specified by:
setVolume in interface MixerChannel
Parameters:
vol - the desired volume setting
Throws:
java.io.IOException -  

getVolume

public Volume getVolume()
                 throws java.io.IOException
Returns the current volume setting.
Specified by:
getVolume in interface MixerChannel
Returns:
the current volume setting.
Throws:
java.io.IOException -  

getVolumeRange

public VolumeRange getVolumeRange()
                           throws java.io.IOException
Returns the range of volume settings for the channel.
Specified by:
getVolumeRange in interface MixerChannel
Returns:
the range of volume settings for the channel.
Throws:
java.io.IOException -  

isStereo

public boolean isStereo()
                 throws java.io.IOException
Returns true if the channel is stereo.
Specified by:
isStereo in interface MixerChannel
Throws:
java.io.IOException -  

hasMute

public boolean hasMute()
                throws java.io.IOException
Returns true if the channel supports muting.
Specified by:
hasMute in interface MixerChannel
Returns:
true if the channel supports muting.
Throws:
java.io.IOException -  

setMute

public void setMute(boolean mute)
             throws java.io.IOException
Sets the mute bit.
Specified by:
setMute in interface MixerChannel
Throws:
java.io.IOException -  

isMute

public boolean isMute()
               throws java.io.IOException
Returns the state of the mute bit.
Specified by:
isMute in interface MixerChannel
Returns:
the state of the mute bit.
Throws:
java.io.IOException -  

toggleMute

public void toggleMute()
                throws java.io.IOException
Toggles the state of the mute bit.
Specified by:
toggleMute in interface MixerChannel
Throws:
java.io.IOException -  

hasRecord

public boolean hasRecord()
                  throws java.io.IOException
Returns true if the channel supports recording.
Specified by:
hasRecord in interface MixerChannel
Returns:
true if the channel supports recording.
Throws:
java.io.IOException -  

setRecord

public void setRecord(boolean rec)
               throws java.io.IOException
Sets the record bit for the channel.
Specified by:
setRecord in interface MixerChannel
Parameters:
rec - the desired state of the record bit.
Throws:
java.io.IOException -  

isRecord

public boolean isRecord()
                 throws java.io.IOException
Returns the state of the record bit for the channel.
Specified by:
isRecord in interface MixerChannel
Returns:
the state of the record bit for the channel.
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 MixerChannel
Overrides:
getType in class NativeMixerElement

toggleRecord

public void toggleRecord()
                  throws java.io.IOException
Toggles the state of the record bit.
Specified by:
toggleRecord in interface MixerChannel
Throws:
java.io.IOException -  

touch

public static void touch()