org.tritonus.lowlevel.alsa
Class AlsaMixerElement

java.lang.Object
  extended byorg.tritonus.lowlevel.alsa.AlsaMixerElement

public class AlsaMixerElement
extends Object

TODO:


Field Summary
static int SND_MIXER_SCHN_FRONT_CENTER
          Front center
static int SND_MIXER_SCHN_FRONT_LEFT
          Front left
static int SND_MIXER_SCHN_FRONT_RIGHT
          Front right
static int SND_MIXER_SCHN_LAST
           
static int SND_MIXER_SCHN_MONO
          Mono (Front left alias)
static int SND_MIXER_SCHN_REAR_LEFT
          Rear left
static int SND_MIXER_SCHN_REAR_RIGHT
          Rear right
static int SND_MIXER_SCHN_UNKNOWN
          Unknown
static int SND_MIXER_SCHN_WOOFER
          Woofer
 
Constructor Summary
AlsaMixerElement(AlsaMixer mixer, int nIndex, String strName)
           
 
Method Summary
 int getCaptureGroup()
          Calls snd_mixer_selem_get_capture_group().
 boolean getCaptureSwitch(int nChannelType)
          Calls snd_mixer_selem_get_capture_switch().
 int getCaptureVolume(int nChannelType)
          Calls snd_mixer_selem_get_capture_volume().
 void getCaptureVolumeRange(int[] anValues)
          Calls snd_mixer_selem_get_capture_volume_range().
static String getChannelName(int nChannelType)
          Calls snd_mixer_selem_channel_name().
 int getIndex()
          Calls snd_mixer_selem_get_index().
 String getName()
          Calls snd_mixer_selem_get_name().
 boolean getPlaybackSwitch(int nChannelType)
          Calls snd_mixer_selem_get_playback_switch().
 int getPlaybackVolume(int nChannelType)
          Calls snd_mixer_selem_get_playback_volume().
 void getPlaybackVolumeRange(int[] anValues)
          Calls snd_mixer_selem_get_playback_volume_range().
 boolean hasCaptureChannel(int nChannelType)
          Calls snd_mixer_selem_has_capture_channel().
 boolean hasCaptureSwitch()
          Calls snd_mixer_selem_has_capture_switch().
 boolean hasCaptureSwitchExclusive()
          Calls snd_mixer_selem_has_capture_switch_exclusive().
 boolean hasCaptureSwitchJoinded()
          Calls snd_mixer_selem_has_capture_switch_joined().
 boolean hasCaptureVolume()
          Calls snd_mixer_selem_has_capture_volume().
 boolean hasCaptureVolumeJoined()
          Calls snd_mixer_selem_has_capture_volume_joined().
 boolean hasCommonSwitch()
          Calls snd_mixer_selem_has_common_switch().
 boolean hasCommonVolume()
          Calls snd_mixer_selem_has_common_volume().
 boolean hasPlaybackChannel(int nChannelType)
          Calls snd_mixer_selem_has_playback_channel().
 boolean hasPlaybackSwitch()
          Calls snd_mixer_selem_has_playback_switch().
 boolean hasPlaybackSwitchJoined()
          Calls snd_mixer_selem_has_playback_switch_joined().
 boolean hasPlaybackVolume()
          Calls snd_mixer_selem_has_playback_volume().
 boolean hasPlaybackVolumeJoined()
          Calls snd_mixer_selem_has_playback_volume_joined().
 boolean isActive()
          Calls snd_mixer_selem_is_active().
 boolean isCaptureMono()
          Calls snd_mixer_selem_is_capture_mono().
 boolean isPlaybackMono()
          Calls snd_mixer_selem_is_playback_mono().
 void setCaptureSwitch(int nChannelType, boolean bValue)
          Calls snd_mixer_selem_set_capture_switch().
 void setCaptureSwitchAll(boolean bValue)
          Calls snd_mixer_selem_set_capture_switch_all().
 void setCaptureVolume(int nChannelType, int nValue)
          Calls snd_mixer_selem_set_capture_volume().
 void setCaptureVolumeAll(int nValue)
          Calls snd_mixer_selem_set_capture_volume_all().
 void setCaptureVolumeRange(int nMin, int nMax)
          Calls snd_mixer_selem_set_capture_volume_range().
 void setPlaybackSwitch(int nChannelType, boolean bValue)
          Calls snd_mixer_selem_set_playback_switch().
 void setPlaybackSwitchAll(boolean bValue)
          Calls snd_mixer_selem_set_playback_switch_all().
 void setPlaybackVolume(int nChannelType, int nValue)
          Calls snd_mixer_selem_set_playback_volume().
 void setPlaybackVolumeAll(int nValue)
          Calls snd_mixer_selem_set_playback_volume_all().
 void setPlaybackVolumeRange(int nMin, int nMax)
          Calls snd_mixer_selem_set_playback_volume_range().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SND_MIXER_SCHN_UNKNOWN

public static final int SND_MIXER_SCHN_UNKNOWN
Unknown

See Also:
Constant Field Values

SND_MIXER_SCHN_FRONT_LEFT

public static final int SND_MIXER_SCHN_FRONT_LEFT
Front left

See Also:
Constant Field Values

SND_MIXER_SCHN_FRONT_RIGHT

public static final int SND_MIXER_SCHN_FRONT_RIGHT
Front right

See Also:
Constant Field Values

SND_MIXER_SCHN_FRONT_CENTER

public static final int SND_MIXER_SCHN_FRONT_CENTER
Front center

See Also:
Constant Field Values

SND_MIXER_SCHN_REAR_LEFT

public static final int SND_MIXER_SCHN_REAR_LEFT
Rear left

See Also:
Constant Field Values

SND_MIXER_SCHN_REAR_RIGHT

public static final int SND_MIXER_SCHN_REAR_RIGHT
Rear right

See Also:
Constant Field Values

SND_MIXER_SCHN_WOOFER

public static final int SND_MIXER_SCHN_WOOFER
Woofer

See Also:
Constant Field Values

SND_MIXER_SCHN_LAST

public static final int SND_MIXER_SCHN_LAST
See Also:
Constant Field Values

SND_MIXER_SCHN_MONO

public static final int SND_MIXER_SCHN_MONO
Mono (Front left alias)

See Also:
Constant Field Values
Constructor Detail

AlsaMixerElement

public AlsaMixerElement(AlsaMixer mixer,
                        int nIndex,
                        String strName)
Method Detail

getName

public String getName()
Calls snd_mixer_selem_get_name().


getIndex

public int getIndex()
Calls snd_mixer_selem_get_index().


isActive

public boolean isActive()
Calls snd_mixer_selem_is_active().


isPlaybackMono

public boolean isPlaybackMono()
Calls snd_mixer_selem_is_playback_mono().


hasPlaybackChannel

public boolean hasPlaybackChannel(int nChannelType)
Calls snd_mixer_selem_has_playback_channel().


isCaptureMono

public boolean isCaptureMono()
Calls snd_mixer_selem_is_capture_mono().


hasCaptureChannel

public boolean hasCaptureChannel(int nChannelType)
Calls snd_mixer_selem_has_capture_channel().


getCaptureGroup

public int getCaptureGroup()
Calls snd_mixer_selem_get_capture_group().


hasCommonVolume

public boolean hasCommonVolume()
Calls snd_mixer_selem_has_common_volume().


hasPlaybackVolume

public boolean hasPlaybackVolume()
Calls snd_mixer_selem_has_playback_volume().


hasPlaybackVolumeJoined

public boolean hasPlaybackVolumeJoined()
Calls snd_mixer_selem_has_playback_volume_joined().


hasCaptureVolume

public boolean hasCaptureVolume()
Calls snd_mixer_selem_has_capture_volume().


hasCaptureVolumeJoined

public boolean hasCaptureVolumeJoined()
Calls snd_mixer_selem_has_capture_volume_joined().


hasCommonSwitch

public boolean hasCommonSwitch()
Calls snd_mixer_selem_has_common_switch().


hasPlaybackSwitch

public boolean hasPlaybackSwitch()
Calls snd_mixer_selem_has_playback_switch().


hasPlaybackSwitchJoined

public boolean hasPlaybackSwitchJoined()
Calls snd_mixer_selem_has_playback_switch_joined().


hasCaptureSwitch

public boolean hasCaptureSwitch()
Calls snd_mixer_selem_has_capture_switch().


hasCaptureSwitchJoinded

public boolean hasCaptureSwitchJoinded()
Calls snd_mixer_selem_has_capture_switch_joined().


hasCaptureSwitchExclusive

public boolean hasCaptureSwitchExclusive()
Calls snd_mixer_selem_has_capture_switch_exclusive().


getPlaybackVolume

public int getPlaybackVolume(int nChannelType)
Calls snd_mixer_selem_get_playback_volume().


getCaptureVolume

public int getCaptureVolume(int nChannelType)
Calls snd_mixer_selem_get_capture_volume().


getPlaybackSwitch

public boolean getPlaybackSwitch(int nChannelType)
Calls snd_mixer_selem_get_playback_switch().


getCaptureSwitch

public boolean getCaptureSwitch(int nChannelType)
Calls snd_mixer_selem_get_capture_switch().


setPlaybackVolume

public void setPlaybackVolume(int nChannelType,
                              int nValue)
Calls snd_mixer_selem_set_playback_volume().


setCaptureVolume

public void setCaptureVolume(int nChannelType,
                             int nValue)
Calls snd_mixer_selem_set_capture_volume().


setPlaybackVolumeAll

public void setPlaybackVolumeAll(int nValue)
Calls snd_mixer_selem_set_playback_volume_all().


setCaptureVolumeAll

public void setCaptureVolumeAll(int nValue)
Calls snd_mixer_selem_set_capture_volume_all().


setPlaybackSwitch

public void setPlaybackSwitch(int nChannelType,
                              boolean bValue)
Calls snd_mixer_selem_set_playback_switch().


setCaptureSwitch

public void setCaptureSwitch(int nChannelType,
                             boolean bValue)
Calls snd_mixer_selem_set_capture_switch().


setPlaybackSwitchAll

public void setPlaybackSwitchAll(boolean bValue)
Calls snd_mixer_selem_set_playback_switch_all().


setCaptureSwitchAll

public void setCaptureSwitchAll(boolean bValue)
Calls snd_mixer_selem_set_capture_switch_all().


getPlaybackVolumeRange

public void getPlaybackVolumeRange(int[] anValues)
Calls snd_mixer_selem_get_playback_volume_range(). anValues[0]: minimum anValues[1]: maximum


getCaptureVolumeRange

public void getCaptureVolumeRange(int[] anValues)
Calls snd_mixer_selem_get_capture_volume_range(). anValues[0]: minimum anValues[1]: maximum


setPlaybackVolumeRange

public void setPlaybackVolumeRange(int nMin,
                                   int nMax)
Calls snd_mixer_selem_set_playback_volume_range().


setCaptureVolumeRange

public void setCaptureVolumeRange(int nMin,
                                  int nMax)
Calls snd_mixer_selem_set_capture_volume_range().


getChannelName

public static String getChannelName(int nChannelType)
Calls snd_mixer_selem_channel_name().