public enum BitrateType extends java.lang.Enum<BitrateType>
Type of bitrate used during the encoding process. Mp3 files can be encoded using a constant bit rate or a variable bit rate. With constant bit rate encoding, each mpeg audio frame in the .mp3 file is encoded using the same bit rate. This has the advantage that every mpeg audio frame is independent of each other, and hence decoding the .mp3 is simpler, and the .mp3 file can be split at any frame and each part will still be able to be played. Since music consists of both aurally simple and complex sections, variable bit rate encoding uses more bits for the complex parts and less for the simple parts. The advantage of this method is that .mp3 files can produce better sounding audio using less data. The disadvantage with variable bit rate encoding is that the mpeg audio frames are dependent on one another and hence an .mp3 file can not be split at an arbitrary audio frame and decoding an .mp3 file is more complex.
Enum Constant and Description |
---|
CBR
mp3 was encoded with a constant bit rate.
|
VBR
mp3 was encoded with a variable bit rate.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
gets the description of the bitrate type.
|
static BitrateType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BitrateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitrateType CBR
public static final BitrateType VBR
public static BitrateType[] values()
for (BitrateType c : BitrateType.values()) System.out.println(c);
public static BitrateType 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()