public static class LibraryJavaSound.MixerRanking extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
GAIN_CONTROL_PRIORITY
Priority for the gain control.
|
boolean |
gainControlOK
Indicates whether or not gain controls are possible on the Mixer.
|
static int |
HIGH
A priority of HIGH means the Mixer is not usable if the capability
is not available.
|
static int |
LINE_COUNT_PRIORITY
Priority for the desired maximum line-count.
|
boolean |
lineCountOK
Indicates whether or not the desired number of lines can be created
on the Mixer.
|
static int |
LOW
A priority of LOW means the Mixer is usable without the capability,
but functionality may be somewhat limited.
|
static int |
MAX_SAMPLE_RATE_PRIORITY
Priority for the desired maximum sample-rate compatibility.
|
int |
maxLinesPossible
Indicates the maximum number of output lines the Mixer can handle.
|
boolean |
maxSampleRateOK
Indicates whether or not the desired maximum sample-rate is
compatible on the Mixer.
|
int |
maxSampleRatePossible
Indicates the maximum sample rate possible for the Mixer, or -1 if
no sample rate is possible.
|
static int |
MEDIUM
A priority of MEDIUM means the Mixer is usable without the
capability, but functionality is greatly limited.
|
static int |
MIN_SAMPLE_RATE_PRIORITY
Priority for the desired minimum sample-rate compatibility.
|
boolean |
minSampleRateOK
Indicates whether or not the desired minimum sample-rate is
compatible on the Mixer.
|
int |
minSampleRatePossible
Indicates the minimum sample rate possible for the Mixer, or -1 if
no sample rate is possible.
|
static int |
MIXER_EXISTS_PRIORITY
Priority for the Mixer existing.
|
boolean |
mixerExists
Indicates whether or not the Mixer exists.
|
Mixer.Info |
mixerInfo
Standard information about the Mixer.
|
static int |
NONE
A priority of NONE means the Mixer is fully functional, and loss of
this capability does not affect the overall ranking.
|
static int |
PAN_CONTROL_PRIORITY
Priority for the pan control.
|
boolean |
panControlOK
Indicates whether or not pan controls are possible on the Mixer.
|
int |
rank
The Mixer's overall ranking.
|
static int |
SAMPLE_RATE_CONTROL_PRIORITY
Priority for the sample-rate control.
|
boolean |
sampleRateControlOK
Indicates whether or not sample-rate controls are possible on the
Mixer.
|
| Constructor and Description |
|---|
MixerRanking()
Constructor: Instantiates a Mixer ranking with default initial
values.
|
MixerRanking(Mixer.Info i,
int r,
boolean e,
boolean mnsr,
boolean mxsr,
boolean lc,
boolean gc,
boolean pc,
boolean src)
Constructor: Instantiates a Mixer ranking with specified initial
values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
rank(Mixer.Info i)
Looks up the specified Mixer, tests its capabilities, and calculates
its overall ranking.
|
public static final int HIGH
public static final int MEDIUM
public static final int LOW
public static final int NONE
public static int MIXER_EXISTS_PRIORITY
public static int MIN_SAMPLE_RATE_PRIORITY
public static int MAX_SAMPLE_RATE_PRIORITY
public static int LINE_COUNT_PRIORITY
public static int GAIN_CONTROL_PRIORITY
public static int PAN_CONTROL_PRIORITY
public static int SAMPLE_RATE_CONTROL_PRIORITY
public Mixer.Info mixerInfo
public int rank
public boolean mixerExists
public boolean minSampleRateOK
public boolean maxSampleRateOK
public boolean lineCountOK
public boolean gainControlOK
public boolean panControlOK
public boolean sampleRateControlOK
public int minSampleRatePossible
public int maxSampleRatePossible
public int maxLinesPossible
public MixerRanking()
public MixerRanking(Mixer.Info i, int r, boolean e, boolean mnsr, boolean mxsr, boolean lc, boolean gc, boolean pc, boolean src)
i - Standard information about the mixer.r - Overall ranking of the mixer.e - Whether or not the mixer exists.mnsr - Whether or not minimum sample-rate is compatible.mxsr - Whether or not maximum sample-rate is compatible.lc - Whether or not number of lines are compatible.gc - Whether or not gain controls are compatible.pc - Whether or not pan controls are compatible.src - Whether or not sample-rate controls are compatible.public void rank(Mixer.Info i) throws LibraryJavaSound.Exception
i - Standard information about the mixer.LibraryJavaSound.ExceptionCopyright © 2017. All rights reserved.