com.frinika.sequencer.model.audio
Class AudioWavReader

java.lang.Object
  extended by com.frinika.sequencer.model.audio.AudioWavReader
Direct Known Subclasses:
AudioReader

public class AudioWavReader
extends java.lang.Object


Field Summary
protected  int audioDataByteLength
           
protected  long audioDataStartBytePtr
           
protected  int bytecount
           
protected  javax.sound.sampled.AudioFormat format
           
protected  int lengthInFrames
           
protected  int nChannels
           
protected  int riffdata
           
protected static java.lang.String sp
           
 
Constructor Summary
AudioWavReader(java.io.RandomAccessFile fis)
           
 
Method Summary
 int getChannels()
           
 int getDataSize()
          read the data size.
 javax.sound.sampled.AudioFormat getFormat()
           
 int getLengthInFrames()
           
protected  void readChunkHeader(java.io.RandomAccessFile fis)
           
protected  void readFormat(java.io.RandomAccessFile fis, int chunkSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sp

protected static java.lang.String sp

audioDataStartBytePtr

protected long audioDataStartBytePtr

audioDataByteLength

protected int audioDataByteLength

lengthInFrames

protected int lengthInFrames

bytecount

protected int bytecount

riffdata

protected int riffdata

format

protected javax.sound.sampled.AudioFormat format

nChannels

protected int nChannels
Constructor Detail

AudioWavReader

public AudioWavReader(java.io.RandomAccessFile fis)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getDataSize

public int getDataSize()
                throws java.io.IOException
read the data size. this will be zero until it is closed.

Returns:
Throws:
java.io.IOException

readChunkHeader

protected void readChunkHeader(java.io.RandomAccessFile fis)
                        throws java.io.IOException
Throws:
java.io.IOException

getLengthInFrames

public int getLengthInFrames()

readFormat

protected void readFormat(java.io.RandomAccessFile fis,
                          int chunkSize)
                   throws java.io.IOException
Throws:
java.io.IOException

getFormat

public javax.sound.sampled.AudioFormat getFormat()

getChannels

public int getChannels()