|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AudioEncoder.Mode>
fi.helsinki.cs.ohtu.mpeg2.audio.AudioEncoder.Mode
public static enum AudioEncoder.Mode
Represents an encoder mode. Encoder implementations might support only a subset of these.
Enum Constant Summary | |
---|---|
DUAL_CHANNEL
Dual channel encoding (two non-related channels) |
|
JOINT_STEREO
Joint stereo encoding (channels joined on higher frequencies) |
|
MS_STEREO
M/S stereo encoding (channels coded into a mid and a side channel) |
|
SINGLE_CHANNEL
Single channel encoding |
|
STEREO
Stereo encoding |
Field Summary | |
---|---|
private int |
channels
|
Method Summary | |
---|---|
int |
getChannels()
Returns the number of channels for this mode. |
static AudioEncoder.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AudioEncoder.Mode[] |
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 AudioEncoder.Mode SINGLE_CHANNEL
public static final AudioEncoder.Mode STEREO
public static final AudioEncoder.Mode DUAL_CHANNEL
public static final AudioEncoder.Mode JOINT_STEREO
public static final AudioEncoder.Mode MS_STEREO
Field Detail |
---|
private final int channels
Method Detail |
---|
public static AudioEncoder.Mode[] values()
for (AudioEncoder.Mode c : AudioEncoder.Mode.values()) System.out.println(c);
public static AudioEncoder.Mode 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 int getChannels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |