public class AIFFFileParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
bitsPerSample |
protected byte[] |
byteData |
protected int |
bytesPerFrame |
protected int |
bytesPerSample |
protected java.util.HashMap<java.lang.Integer,SampleMarker> |
cueMap |
protected double |
frameRate |
protected int |
numFrames |
protected double |
originalPitch |
protected short |
samplesPerFrame |
protected int |
sustainBegin |
protected int |
sustainEnd |
Constructor and Description |
---|
AIFFFileParser() |
Modifier and Type | Method and Description |
---|---|
protected SampleMarker |
findOrCreateCuePoint(int uniqueID) |
long |
getDataPosition() |
long |
getFileSize()
This can be read by another thread when load()ing a sample to determine how many bytes need
to be read.
|
long |
getNumBytesRead()
This can be read by another thread when load()ing a sample to determine how many bytes have
been read so far.
|
void |
handleChunk(com.jsyn.util.soundfile.IFFParser parser,
int ckID,
int ckSize)
Called by parse() method to handle chunks in an AIFF specific manner.
|
void |
handleForm(com.jsyn.util.soundfile.IFFParser parser,
int ckID,
int ckSize,
int type)
Called by parse() method to handle FORM chunks in an AIFF specific manner.
|
FloatSample |
load(com.jsyn.util.soundfile.IFFParser parser) |
protected java.lang.String |
parseString(com.jsyn.util.soundfile.IFFParser parser,
int textLength) |
protected byte[] byteData
protected int bitsPerSample
protected int bytesPerFrame
protected int bytesPerSample
protected java.util.HashMap<java.lang.Integer,SampleMarker> cueMap
protected short samplesPerFrame
protected double frameRate
protected int numFrames
protected double originalPitch
protected int sustainBegin
protected int sustainEnd
public void handleForm(com.jsyn.util.soundfile.IFFParser parser, int ckID, int ckSize, int type) throws java.io.IOException
ckID
- four byte chunk ID such as 'data'ckSize
- size of chunk in bytesjava.io.IOException
- If parsing fails, or IO error occurs.public void handleChunk(com.jsyn.util.soundfile.IFFParser parser, int ckID, int ckSize) throws java.io.IOException
ckID
- four byte chunk ID such as 'data'ckSize
- size of chunk in bytesjava.io.IOException
- If parsing fails, or IO error occurs.public long getDataPosition()
public long getNumBytesRead()
public long getFileSize()
protected SampleMarker findOrCreateCuePoint(int uniqueID)
public FloatSample load(com.jsyn.util.soundfile.IFFParser parser) throws java.io.IOException
java.io.IOException
protected java.lang.String parseString(com.jsyn.util.soundfile.IFFParser parser, int textLength) throws java.io.IOException
java.io.IOException