com.tuneology.avm.mixer
Interface MixerChannel

All Superinterfaces:
MixerElement
All Known Implementing Classes:
NativeMixerChannel

public interface MixerChannel
extends MixerElement

This class represents a channel on an audio mixer.

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

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.
 
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.
Parameters:
vol - the desired volume setting
Throws:
java.io.IOException -  

getVolume

public Volume getVolume()
                 throws java.io.IOException
Returns the current volume setting.
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.
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.
Throws:
java.io.IOException -  

hasMute

public boolean hasMute()
                throws java.io.IOException
Returns true if the channel supports muting.
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.
Throws:
java.io.IOException -  

isMute

public boolean isMute()
               throws java.io.IOException
Returns the state of the mute bit.
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.
Throws:
java.io.IOException -  

hasRecord

public boolean hasRecord()
                  throws java.io.IOException
Returns true if the channel supports recording.
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.
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.
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 MixerElement

toggleRecord

public void toggleRecord()
                  throws java.io.IOException
Toggles the state of the record bit.
Throws:
java.io.IOException -