com.frinika.sequencer.model.audio
Class AudioClipReader

java.lang.Object
  extended by com.frinika.sequencer.model.audio.AudioClipReader
All Implemented Interfaces:
DoubleDataSource, uk.org.toot.audio.core.AudioProcess

Deprecated. TODO use AudioReader

public class AudioClipReader
extends java.lang.Object
implements DoubleDataSource, uk.org.toot.audio.core.AudioProcess


Field Summary
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
AudioClipReader(java.io.File clipFile, long startFrame)
          Deprecated.  
 
Method Summary
 void close()
          Deprecated.  
 boolean endOfFile()
          Deprecated. true if ptr is after the last data in the file.
 int getChannels()
          Deprecated.  
 long getCurrentFrame()
          Deprecated.  
 javax.sound.sampled.AudioFormat getFormat()
          Deprecated.  
 long getLengthInFrames()
          Deprecated.  
 void open()
          Deprecated.  
 int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
          Deprecated. read from file into a double array.
 void readNextDouble(double[] buffer, int offSet, int nFrame)
          Deprecated. read from file into a double array.
 void seekFrame(long pos)
          Deprecated. Seek frame absolute frame postion pos-startFrame
 void seekFrameInClip(long pos)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioClipReader

public AudioClipReader(java.io.File clipFile,
                       long startFrame)
                throws java.io.IOException
Deprecated. 
Parameters:
clipFile - file with audio
startFrame - position in frames relative to start of sequence.
Throws:
java.io.IOException
Method Detail

readNextDouble

public void readNextDouble(double[] buffer,
                           int offSet,
                           int nFrame)
Deprecated. 
read from file into a double array.

Specified by:
readNextDouble in interface DoubleDataSource
Parameters:
buffer - double buffer
offSet - start writing here
nFrame - number of frames to read.

processAudio

public int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
Deprecated. 
read from file into a double array.

Specified by:
processAudio in interface uk.org.toot.audio.core.AudioProcess
Parameters:
buffer - double buffer
offSet - start writing here
nFrame - number of frames to read.

seekFrameInClip

public void seekFrameInClip(long pos)
Deprecated. 
Parameters:
pos - position relative to start of clip

seekFrame

public void seekFrame(long pos)
Deprecated. 
Seek frame absolute frame postion pos-startFrame

Specified by:
seekFrame in interface DoubleDataSource

endOfFile

public boolean endOfFile()
Deprecated. 
true if ptr is after the last data in the file.

Specified by:
endOfFile in interface DoubleDataSource

getChannels

public int getChannels()
Deprecated. 
Specified by:
getChannels in interface DoubleDataSource

getFormat

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

open

public void open()
Deprecated. 
Specified by:
open in interface uk.org.toot.audio.core.AudioProcess

close

public void close()
Deprecated. 
Specified by:
close in interface uk.org.toot.audio.core.AudioProcess

getCurrentFrame

public long getCurrentFrame()
Deprecated. 
Specified by:
getCurrentFrame in interface DoubleDataSource

getLengthInFrames

public long getLengthInFrames()
Deprecated. 
Specified by:
getLengthInFrames in interface DoubleDataSource