org.jaudiotagger.audio.mp3
Class LameFrame

java.lang.Object
  extended by org.jaudiotagger.audio.mp3.LameFrame

public class LameFrame
extends java.lang.Object

The first frame can sometimes contain a LAME frame at th 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


Field Summary
static int ENCODER_SIZE
           
static int LAME_HEADER_BUFFER_SIZE
           
static java.lang.String LAME_ID
           
static int LAME_ID_SIZE
           
 
Method Summary
 java.lang.String getEncoder()
           
static LameFrame parseLameFrame(java.nio.ByteBuffer bb)
          Parse frame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

parseLameFrame

public static LameFrame parseLameFrame(java.nio.ByteBuffer bb)
Parse frame

Returns:
frame or null if not exists
Throws:
InvalidAudioFrameException

getEncoder

public java.lang.String getEncoder()
Returns:
encoder