|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<BufferFormat>
org.xith3d.sound.BufferFormat
public enum BufferFormat
This is an abstraction for common sound formats.
| Enum Constant Summary | |
|---|---|
MONO16
|
|
MONO8
|
|
STEREO16
|
|
STEREO8
|
|
| Method Summary | |
|---|---|
int |
getBits()
The number of bits for this format. |
static BufferFormat |
getFromValues(int bits,
int channels)
Selects the correct BufferFormat from int values. |
int |
getNumChannels()
The number of channels for this format. |
static BufferFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BufferFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final BufferFormat MONO8
public static final BufferFormat MONO16
public static final BufferFormat STEREO8
public static final BufferFormat STEREO16
| Method Detail |
|---|
public static BufferFormat[] values()
for (BufferFormat c : BufferFormat.values()) System.out.println(c);
public static BufferFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getBits()
public final int getNumChannels()
public static final BufferFormat getFromValues(int bits,
int channels)
bits - channels -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||