com.frinika.audio.io
Class AudioWavReader
java.lang.Object
com.frinika.audio.io.AudioWavReader
- Direct Known Subclasses:
- AudioReader
public class AudioWavReader
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AudioWavReader
public AudioWavReader(java.io.RandomAccessFile fis)
throws java.io.IOException
- Throws:
java.io.IOException
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()