org.jaudiotagger.audio.mp3
Class LameFrame
java.lang.Object
org.jaudiotagger.audio.mp3.LameFrame
public class LameFrame
- extends java.lang.Object
The first frame can sometimes contain a LAME frame at the end of the Xing frame
This useful to the library because it allows the encoder to be identified, full specification
can be found at http://gabriel.mp3-tech.org/mp3infotag.html
Summarized here:
4 bytes:LAME
5 bytes:LAME Encoder Version
1 bytes:VNR Method
1 bytes:Lowpass filter value
8 bytes:Replay Gain
1 byte:Encoding Flags
1 byte:minimal byte rate
3 bytes:extra samples
1 byte:Stereo Mode
1 byte:MP3 Gain
2 bytes:Surround Dound
4 bytes:MusicLength
2 bytes:Music CRC
2 bytes:CRC Tag
Constructor Summary |
private |
LameFrame(java.nio.ByteBuffer lameHeader)
Initilise a Lame Mpeg Frame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LAME_HEADER_BUFFER_SIZE
public static final int LAME_HEADER_BUFFER_SIZE
- See Also:
- Constant Field Values
ENCODER_SIZE
public static final int ENCODER_SIZE
- See Also:
- Constant Field Values
LAME_ID_SIZE
public static final int LAME_ID_SIZE
- See Also:
- Constant Field Values
LAME_ID
public static final java.lang.String LAME_ID
- See Also:
- Constant Field Values
encoder
private java.lang.String encoder
LameFrame
private LameFrame(java.nio.ByteBuffer lameHeader)
- Initilise a Lame Mpeg Frame
- Parameters:
lameHeader
-
parseLameFrame
public static LameFrame parseLameFrame(java.nio.ByteBuffer bb)
- Parse frame
- Parameters:
bb
-
- Returns:
- frame or null if not exists
getEncoder
public java.lang.String getEncoder()
- Returns:
- encoder