de.sciss.io
Interface InterleavedStreamFile

All Known Implementing Classes:
AudioFile

public interface InterleavedStreamFile

A RandomAccessFile wrapper class that using java.nio and a FloatBuffer to write single or multichannel 32bit floating point files, which for instance are used to store trajectory data. Files are purely data, headerless, where channels are written interleaved float[channel0][frame0], float[channel1][frame0], ..., float[channelN][frame0], float[channel0][frame1], ... etc ... float[channelN][frameM]

InterleavedStreamFiles are used inside NondestructiveTrackEditors

Version:
0.26, 08-Jan-06
Author:
Hanns Holger Rutz

Method Summary
 void close()
           
 void copyFrames(InterleavedStreamFile target, long length)
           
 void flush()
           
 int getChannelNum()
           
 java.io.File getFile()
           
 long getFrameNum()
           
 long getFramePosition()
           
 void readFrames(float[][] data, int offset, int length)
           
 void seekFrame(long position)
           
 void setFrameNum(long n)
           
 void truncate()
           
 void writeFrames(float[][] data, int offset, int length)
           
 

Method Detail

close

void close()
           throws java.io.IOException
Throws:
java.io.IOException

truncate

void truncate()
              throws java.io.IOException
Throws:
java.io.IOException

readFrames

void readFrames(float[][] data,
                int offset,
                int length)
                throws java.io.IOException
Throws:
java.io.IOException

writeFrames

void writeFrames(float[][] data,
                 int offset,
                 int length)
                 throws java.io.IOException
Throws:
java.io.IOException

copyFrames

void copyFrames(InterleavedStreamFile target,
                long length)
                throws java.io.IOException
Throws:
java.io.IOException

seekFrame

void seekFrame(long position)
               throws java.io.IOException
Throws:
java.io.IOException

getFrameNum

long getFrameNum()
                 throws java.io.IOException
Throws:
java.io.IOException

setFrameNum

void setFrameNum(long n)
                 throws java.io.IOException
Throws:
java.io.IOException

getChannelNum

int getChannelNum()

getFramePosition

long getFramePosition()
                      throws java.io.IOException
Throws:
java.io.IOException

flush

void flush()
           throws java.io.IOException
Throws:
java.io.IOException

getFile

java.io.File getFile()