public class AlsaCtl
extends java.lang.Object
Constructor and Description |
---|
AlsaCtl(int nCard) |
AlsaCtl(java.lang.String strName,
int nMode)
Open a ctl.
|
Modifier and Type | Method and Description |
---|---|
int |
close()
Calls snd_ctl_close().
|
static int |
getCardIndex(java.lang.String strName) |
int |
getCardInfo(AlsaCtlCardInfo cardInfo)
Calls snd_ctl_card_info().
|
static java.lang.String |
getCardLongName(int nCard) |
static java.lang.String |
getCardName(int nCard) |
static int[] |
getCards() |
int[] |
getPcmDevices() |
int |
getPcmInfo(int[] anValues,
java.lang.String[] astrValues)
anValues[0] device (inout)
anValues[1] subdevice (inout)
anValues[2] stream (inout)
anValues[3] card (out)
anValues[4] class (out)
anValues[5] subclass (out)
anValues[6] subdevice count (out)
anValues[7] subdevice available (out)
astrValues[0] id (out)
astrValues[1] name (out)
astrValues[2] subdevice name (out)
|
static int |
loadCard(int nCard) |
public AlsaCtl(java.lang.String strName, int nMode) throws java.lang.Exception
close()
. This is
necessary to free native resources.strName
- The name of the sound card. For
instance, "hw:0", or an identifier you gave the
card ("CARD1").nMode
- Special modes for the low-level opening
like SND_CTL_NONBLOCK, SND_CTL_ASYNC. Normally, set
this to 0.java.lang.Exception
public AlsaCtl(int nCard) throws java.lang.Exception
java.lang.Exception
public static int loadCard(int nCard)
public static int[] getCards()
public static int getCardIndex(java.lang.String strName)
public static java.lang.String getCardName(int nCard)
public static java.lang.String getCardLongName(int nCard)
public int close()
public int getCardInfo(AlsaCtlCardInfo cardInfo)
public int[] getPcmDevices()
public int getPcmInfo(int[] anValues, java.lang.String[] astrValues)