|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.frinika.sequencer.model.audio.AudioClipReader
public class AudioClipReader
| 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 |
|---|
public AudioClipReader(java.io.File clipFile,
long startFrame)
throws java.io.IOException
clipFile - file with audiostartFrame - position in frames relative to start of sequence.
java.io.IOException| Method Detail |
|---|
public void readNextDouble(double[] buffer,
int offSet,
int nFrame)
readNextDouble in interface DoubleDataSourcebuffer - double bufferoffSet - start writing herenFrame - number of frames to read.public int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
processAudio in interface uk.org.toot.audio.core.AudioProcessbuffer - double bufferoffSet - start writing herenFrame - number of frames to read.public void seekFrameInClip(long pos)
pos - position relative to start of clippublic void seekFrame(long pos)
seekFrame in interface DoubleDataSourcepublic boolean endOfFile()
endOfFile in interface DoubleDataSourcepublic int getChannels()
getChannels in interface DoubleDataSourcepublic javax.sound.sampled.AudioFormat getFormat()
public void open()
open in interface uk.org.toot.audio.core.AudioProcesspublic void close()
close in interface uk.org.toot.audio.core.AudioProcesspublic long getCurrentFrame()
getCurrentFrame in interface DoubleDataSourcepublic long getLengthInFrames()
getLengthInFrames in interface DoubleDataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||