net.sourceforge.dvb.projectx.audio
Class AudioFormatAC3

java.lang.Object
  |
  +--net.sourceforge.dvb.projectx.audio.AudioFormat
        |
        +--net.sourceforge.dvb.projectx.audio.AudioFormatAC3

public class AudioFormatAC3
extends AudioFormat


Fields inherited from class net.sourceforge.dvb.projectx.audio.AudioFormat
Bitrate, Bound, Channel, Copyright, Emphasis, ID, INTEL, Layer, lBitrate, lChannel, lCopyright, lEmphasis, lID, lLayer, lMode, lMode_extension, lOriginal, lPadding_bit, lPrivate_bit, lProtection_bit, lpublic_bit, lSampling_frequency, lSize, lSize_base, lTime_length, Mode, Mode_extension, nBitrate, nChannel, nCopyright, nEmphasis, nID, nLayer, nMode, nMode_extension, nOriginal, nPadding_bit, nPrivate_bit, nProtection_bit, npublic_bit, nSampling_frequency, nSize, nSize_base, nTime_length, Original, Padding_bit, Private_bit, Protection_bit, public_bit, Sampling_frequency, Sblimit, Size, Size_base, Time_length
 
Constructor Summary
AudioFormatAC3()
           
 
Method Summary
 int compareHeader()
          compare current & last ac3 header
 java.lang.String displayHeader()
          display last ac3 header
 byte[] editFrame(byte[] frame, int framesize, int mode)
           
 byte[] getExtraWaveHeader(int channel, boolean placeholder)
           
 void initExtraWaveHeader(boolean bool_ACM, boolean bool_BWF, boolean bool_AC3)
           
 int parseHeader(byte[] frame, int pos)
          parse ac3 Header
 int parseNextHeader(byte[] frame, int pos)
          parse next ac3 Header
 void parseRiffData(byte[] frame, int channel)
          riffdata from ac3 audio awaiting a frame byte array, only the header is used
 void setExtraWaveData(int[] array, int channel)
           
 void setExtraWaveLength(long filelength, long timelength, int channel)
           
 int validateCRC(byte[] frame, int offset, int frame_size)
          validate crc16 1 + 2
 
Methods inherited from class net.sourceforge.dvb.projectx.audio.AudioFormat
decodeAncillaryData, fillRiffHeader, fillStdRiffHeader, getBitrate, getChannel, getEmphasis, getFrameTimeLength, getID, getLastModeExtension, getLayer, getMode, getModeExtension, getRiffHeader, getSamplingFrequency, getSize, getSizeBase, getValue, init, littleEndian, littleEndian, littleEndian, parseHeader, removeCRC, saveAndDisplayHeader, saveHeader, setAncillaryDataDecoder, setNewType, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioFormatAC3

public AudioFormatAC3()
Method Detail

parseHeader

public int parseHeader(byte[] frame,
                       int pos)
parse ac3 Header
Overrides:
parseHeader in class AudioFormat

parseNextHeader

public int parseNextHeader(byte[] frame,
                           int pos)
parse next ac3 Header
Overrides:
parseNextHeader in class AudioFormat

compareHeader

public int compareHeader()
compare current & last ac3 header
Overrides:
compareHeader in class AudioFormat

displayHeader

public java.lang.String displayHeader()
display last ac3 header
Overrides:
displayHeader in class AudioFormat

validateCRC

public int validateCRC(byte[] frame,
                       int offset,
                       int frame_size)
validate crc16 1 + 2
Overrides:
validateCRC in class AudioFormat

editFrame

public byte[] editFrame(byte[] frame,
                        int framesize,
                        int mode)
Overrides:
editFrame in class AudioFormat

parseRiffData

public void parseRiffData(byte[] frame,
                          int channel)
riffdata from ac3 audio awaiting a frame byte array, only the header is used
Overrides:
parseRiffData in class AudioFormat

initExtraWaveHeader

public void initExtraWaveHeader(boolean bool_ACM,
                                boolean bool_BWF,
                                boolean bool_AC3)
Overrides:
initExtraWaveHeader in class AudioFormat

getExtraWaveHeader

public byte[] getExtraWaveHeader(int channel,
                                 boolean placeholder)
Overrides:
getExtraWaveHeader in class AudioFormat

setExtraWaveData

public void setExtraWaveData(int[] array,
                             int channel)
Overrides:
setExtraWaveData in class AudioFormat

setExtraWaveLength

public void setExtraWaveLength(long filelength,
                               long timelength,
                               int channel)
Overrides:
setExtraWaveLength in class AudioFormat