com.frinika.sequencer.model.audio
Class DAudioReader

java.lang.Object
  extended by com.frinika.sequencer.model.audio.DAudioReader

Deprecated.

public class DAudioReader
extends java.lang.Object

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

DAudioReader

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

getLengthInFrames

public int getLengthInFrames()
Deprecated. 

getFormat

public javax.sound.sampled.AudioFormat getFormat()
Deprecated. 

seekFrame

public void seekFrame(long framePos)
               throws java.io.IOException
Deprecated. 
Parameters:
framePos - frame postition reltive to start of audio. e.g. zero is start of audio.
Throws:
java.io.IOException

read

public void read(byte[] byteBuffer,
                 int offSet,
                 int n)
          throws java.io.IOException
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.

Parameters:
byteBuffer - buffer to fill
offSet - offset into byteBuffer
n - number of bytes to be read
Throws:
java.io.IOException

getChannels

public int getChannels()
Deprecated. 

eof

public boolean eof()
Deprecated. 

getCurrentFrame

public long getCurrentFrame()
Deprecated.