org.tritonus.sampled.mixer.alsa
Class AlsaPortMixer

java.lang.Object
  extended byorg.tritonus.share.sampled.mixer.TLine
      extended byorg.tritonus.share.sampled.mixer.TMixer
          extended byorg.tritonus.sampled.mixer.alsa.AlsaPortMixer
All Implemented Interfaces:
Line, Mixer

public class AlsaPortMixer
extends TMixer

TODO:


Nested Class Summary
 class AlsaPortMixer.AlsaCompoundControl
          CompoundControl class.
 
Nested classes inherited from class javax.sound.sampled.Mixer
Mixer.Info
 
Field Summary
static int DIRECTION_CAPTURE
          Used to signal capture volume or capture switch.
static int DIRECTION_COMMON
          Used to signal common volume or common switch.
static int DIRECTION_NONE
          Used to signal an illegal value for direction.
static int DIRECTION_PLAYBACK
          Used to signal playback volume or playback switch.
 
Constructor Summary
AlsaPortMixer(int nCard)
           
AlsaPortMixer(String strDeviceName)
           
 
Method Summary
 void close()
           
 int getMaxLines(Line.Info info)
           
protected  Port getPort(Port.Info info)
           
 void open()
           
 
Methods inherited from class org.tritonus.share.sampled.mixer.TMixer
getClip, getLine, getMixerInfo, getSourceDataLine, getSourceLineInfo, getSourceLineInfo, getSourceLines, getTargetDataLine, getTargetLineInfo, getTargetLineInfo, getTargetLines, isLineSupported, isSourceFormatSupported, isSynchronizationSupported, isTargetFormatSupported, setSupportInformation, synchronize, unsynchronize
 
Methods inherited from class org.tritonus.share.sampled.mixer.TLine
addControl, addLineListener, closeImpl, getControl, getControls, getLineInfo, getMixer, isControlSupported, isOpen, notifyLineEvent, notifyLineEvent, openImpl, removeControl, removeLineListener, setLineInfo, setOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sound.sampled.Line
addLineListener, getControl, getControls, getLineInfo, isControlSupported, isOpen, removeLineListener
 

Field Detail

DIRECTION_NONE

public static final int DIRECTION_NONE
Used to signal an illegal value for direction.

See Also:
Constant Field Values

DIRECTION_COMMON

public static final int DIRECTION_COMMON
Used to signal common volume or common switch.

See Also:
Constant Field Values

DIRECTION_PLAYBACK

public static final int DIRECTION_PLAYBACK
Used to signal playback volume or playback switch.

See Also:
Constant Field Values

DIRECTION_CAPTURE

public static final int DIRECTION_CAPTURE
Used to signal capture volume or capture switch.

See Also:
Constant Field Values
Constructor Detail

AlsaPortMixer

public AlsaPortMixer(int nCard)

AlsaPortMixer

public AlsaPortMixer(String strDeviceName)
Method Detail

open

public void open()
Specified by:
open in interface Line
Overrides:
open in class TLine

close

public void close()
Specified by:
close in interface Line
Overrides:
close in class TLine

getMaxLines

public int getMaxLines(Line.Info info)

getPort

protected Port getPort(Port.Info info)
                throws LineUnavailableException
Overrides:
getPort in class TMixer
Throws:
LineUnavailableException