|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.sequencer.model.audio.DAudioReader
public class DAudioReader
Wraps up a wav file and allows access using a RandomAccessFile. provides a view of the file that allows reads before the start and after the end of the file you'll just get zeros returned.
Constructor Summary | |
---|---|
DAudioReader(java.io.RandomAccessFile fis)
Deprecated. |
Method Summary | |
---|---|
boolean |
eof()
Deprecated. |
int |
getChannels()
Deprecated. |
long |
getCurrentFrame()
Deprecated. |
javax.sound.sampled.AudioFormat |
getFormat()
Deprecated. |
int |
getLengthInFrames()
Deprecated. |
void |
read(byte[] byteBuffer,
int offSet,
int n)
Deprecated. Read from file into byte buffer and advance the fPtrBytes pointer it is OK to read before/after start/end of the file you'll just get zeros. |
void |
seekFrame(long framePos)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DAudioReader(java.io.RandomAccessFile fis) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getLengthInFrames()
public javax.sound.sampled.AudioFormat getFormat()
public void seekFrame(long framePos) throws java.io.IOException
framePos
- frame postition reltive to start of audio. e.g. zero is start of audio.
java.io.IOException
public void read(byte[] byteBuffer, int offSet, int n) throws java.io.IOException
byteBuffer
- buffer to filloffSet
- offset into byteBuffern
- number of bytes to be read
java.io.IOException
public int getChannels()
public boolean eof()
public long getCurrentFrame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |