Enum Mp3Decoder.MpegVersion
- java.lang.Object
-
- java.lang.Enum<Mp3Decoder.MpegVersion>
-
- com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder.MpegVersion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Mp3Decoder.MpegVersion>
- Enclosing class:
- Mp3Decoder
public static enum Mp3Decoder.MpegVersion extends java.lang.Enum<Mp3Decoder.MpegVersion>
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_FRAME_SIZE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAverageFrameSize(byte[] buffer, int offset)intgetBitRate(byte[] buffer, int offset)intgetFrameLengthMultiplier()intgetFrameSize(byte[] buffer, int offset)intgetSampleRate(byte[] buffer, int offset)intgetSamplesPerFrame()static Mp3Decoder.MpegVersiongetVersion(byte[] buffer, int offset)static Mp3Decoder.MpegVersionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Mp3Decoder.MpegVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MPEG_1
public static final Mp3Decoder.MpegVersion MPEG_1
-
MPEG_2
public static final Mp3Decoder.MpegVersion MPEG_2
-
MPEG_2_5
public static final Mp3Decoder.MpegVersion MPEG_2_5
-
-
Method Detail
-
values
public static Mp3Decoder.MpegVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Mp3Decoder.MpegVersion c : Mp3Decoder.MpegVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mp3Decoder.MpegVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getVersion
public static Mp3Decoder.MpegVersion getVersion(byte[] buffer, int offset)
-
getSamplesPerFrame
public int getSamplesPerFrame()
-
getFrameLengthMultiplier
public int getFrameLengthMultiplier()
-
getBitRate
public int getBitRate(byte[] buffer, int offset)
-
getSampleRate
public int getSampleRate(byte[] buffer, int offset)
-
getFrameSize
public int getFrameSize(byte[] buffer, int offset)
-
getAverageFrameSize
public double getAverageFrameSize(byte[] buffer, int offset)
-
-