org.jaudiotagger.audio.mp4.atom
Class Mp4AlacBox

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

public class Mp4AlacBox
extends AbstractMp4Box

AlacBox ( Apple Lossless Codec information description box), Normally occurs twice, the first ALAC contaisn the default values, the second ALAC within contains the real values for this audio.


Field Summary
private  int bitRate
           
private  int channels
           
private  int historyMult
           
private  int initialHistory
           
private  int kModifier
           
private  int maxCodedFrameSize
           
private  int maxSamplePerFrame
           
static int OTHER_FLAG_LENGTH
           
private  int sampleRate
           
private  int sampleSize
           
private  int unknown1
           
private  int unknown2
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4AlacBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
          DataBuffer must start from from the start of the body
 
Method Summary
 int getBitRate()
           
 int getChannels()
           
 int getHistoryMult()
           
 int getInitialHistory()
           
 int getKModifier()
           
 int getMaxCodedFrameSize()
           
 int getMaxSamplePerFrame()
           
 int getSampleRate()
           
 int getSampleSize()
           
 int getUnknown1()
           
 int getUnknown2()
           
 void processData()
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

OTHER_FLAG_LENGTH

public static final int OTHER_FLAG_LENGTH
See Also:
Constant Field Values

maxSamplePerFrame

private int maxSamplePerFrame

unknown1

private int unknown1

sampleSize

private int sampleSize

historyMult

private int historyMult

initialHistory

private int initialHistory

kModifier

private int kModifier

channels

private int channels

unknown2

private int unknown2

maxCodedFrameSize

private int maxCodedFrameSize

bitRate

private int bitRate

sampleRate

private int sampleRate
Constructor Detail

Mp4AlacBox

public Mp4AlacBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer dataBuffer)
DataBuffer must start from from the start of the body

Parameters:
header - header info
dataBuffer - data of box (doesnt include header data)
Method Detail

processData

public void processData()
                 throws CannotReadException
Throws:
CannotReadException

getMaxSamplePerFrame

public int getMaxSamplePerFrame()

getUnknown1

public int getUnknown1()

getSampleSize

public int getSampleSize()

getHistoryMult

public int getHistoryMult()

getInitialHistory

public int getInitialHistory()

getKModifier

public int getKModifier()

getChannels

public int getChannels()

getUnknown2

public int getUnknown2()

getMaxCodedFrameSize

public int getMaxCodedFrameSize()

getBitRate

public int getBitRate()

getSampleRate

public int getSampleRate()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object