org.tritonus.lowlevel.alsa
Class AlsaMixer

java.lang.Object
  extended by org.tritonus.lowlevel.alsa.AlsaMixer

public class AlsaMixer
extends java.lang.Object

Object carrying a snd_mixer_t.


Constructor Summary
AlsaMixer(java.lang.String strMixerName)
           
 
Method Summary
 int close()
          Calls snd_mixer_close().
 int readControlList(int[] anIndices, java.lang.String[] astrNames)
          The caller has to allocate the indices and names arrays big enough to hold information on all controls.
static void setTrace(boolean bTrace)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlsaMixer

public AlsaMixer(java.lang.String strMixerName)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

close

public int close()
Calls snd_mixer_close().


readControlList

public int readControlList(int[] anIndices,
                           java.lang.String[] astrNames)
The caller has to allocate the indices and names arrays big enough to hold information on all controls. If the retrieving of controls is successful, a positive number (the number of controls) is returned. If the arrays are not big enough, -1 is returned. In this case, it's the task of the caller to allocate bigger arrays and try again. Both arrays must be of the same size. Calls snd_mixer_first_elem() and snd_mixer_elem_next().


setTrace

public static void setTrace(boolean bTrace)