org.jaudiotagger.audio.mp4.atom
Class Mp4MdhdBox

java.lang.Object
  extended by org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
      extended by org.jaudiotagger.audio.mp4.atom.Mp4MdhdBox

public class Mp4MdhdBox
extends AbstractMp4Box

MdhdBox ( media (stream) header), holds the Sampling Rate used.


Field Summary
static int CREATED_DATE_LONG_LENGTH
           
static int CREATED_DATE_LONG_POS
           
static int CREATED_DATE_SHORT_LENGTH
           
static int CREATED_DATE_SHORT_POS
           
static int DURATION_LONG_LENGTH
           
static int DURATION_LONG_POS
           
static int DURATION_SHORT_LENGTH
           
static int DURATION_SHORT_POS
           
private static int LONG_FORMAT
           
static int MODIFIED_DATE_LONG_LENGTH
           
static int MODIFIED_DATE_LONG_POS
           
static int MODIFIED_DATE_SHORT_LENGTH
           
static int MODIFIED_DATE_SHORT_POS
           
static int OTHER_FLAG_LENGTH
           
static int OTHER_FLAG_POS
           
private  int samplingRate
           
static int TIMESCALE_LENGTH
           
static int TIMESCALE_LONG_POS
           
static int TIMESCALE_SHORT_POS
           
static int VERSION_FLAG_LENGTH
           
static int VERSION_FLAG_POS
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4MdhdBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
           
 
Method Summary
 int getSampleRate()
           
 
Methods inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
getData, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_FLAG_POS

public static final int VERSION_FLAG_POS
See Also:
Constant Field Values

OTHER_FLAG_POS

public static final int OTHER_FLAG_POS
See Also:
Constant Field Values

CREATED_DATE_SHORT_POS

public static final int CREATED_DATE_SHORT_POS
See Also:
Constant Field Values

MODIFIED_DATE_SHORT_POS

public static final int MODIFIED_DATE_SHORT_POS
See Also:
Constant Field Values

TIMESCALE_SHORT_POS

public static final int TIMESCALE_SHORT_POS
See Also:
Constant Field Values

DURATION_SHORT_POS

public static final int DURATION_SHORT_POS
See Also:
Constant Field Values

CREATED_DATE_LONG_POS

public static final int CREATED_DATE_LONG_POS
See Also:
Constant Field Values

MODIFIED_DATE_LONG_POS

public static final int MODIFIED_DATE_LONG_POS
See Also:
Constant Field Values

TIMESCALE_LONG_POS

public static final int TIMESCALE_LONG_POS
See Also:
Constant Field Values

DURATION_LONG_POS

public static final int DURATION_LONG_POS
See Also:
Constant Field Values

VERSION_FLAG_LENGTH

public static final int VERSION_FLAG_LENGTH
See Also:
Constant Field Values

OTHER_FLAG_LENGTH

public static final int OTHER_FLAG_LENGTH
See Also:
Constant Field Values

CREATED_DATE_SHORT_LENGTH

public static final int CREATED_DATE_SHORT_LENGTH
See Also:
Constant Field Values

MODIFIED_DATE_SHORT_LENGTH

public static final int MODIFIED_DATE_SHORT_LENGTH
See Also:
Constant Field Values

CREATED_DATE_LONG_LENGTH

public static final int CREATED_DATE_LONG_LENGTH
See Also:
Constant Field Values

MODIFIED_DATE_LONG_LENGTH

public static final int MODIFIED_DATE_LONG_LENGTH
See Also:
Constant Field Values

TIMESCALE_LENGTH

public static final int TIMESCALE_LENGTH
See Also:
Constant Field Values

DURATION_SHORT_LENGTH

public static final int DURATION_SHORT_LENGTH
See Also:
Constant Field Values

DURATION_LONG_LENGTH

public static final int DURATION_LONG_LENGTH
See Also:
Constant Field Values

LONG_FORMAT

private static final int LONG_FORMAT
See Also:
Constant Field Values

samplingRate

private int samplingRate
Constructor Detail

Mp4MdhdBox

public Mp4MdhdBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer dataBuffer)
Parameters:
header - header info
dataBuffer - data of box (doesnt include header data)
Method Detail

getSampleRate

public int getSampleRate()