org.tritonus.lowlevel.alsa
Class AlsaMixer
java.lang.Object
org.tritonus.lowlevel.alsa.AlsaMixer
- public class AlsaMixer
- extends Object
Object carrying a snd_mixer_t.
Method Summary |
int |
close()
Calls snd_mixer_close(). |
int |
readControlList(int[] anIndices,
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_lNativeHandle
long m_lNativeHandle
AlsaMixer
public AlsaMixer(String strMixerName)
throws Exception
- Throws:
Exception
close
public int close()
- Calls snd_mixer_close().
readControlList
public int readControlList(int[] anIndices,
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)