Package de.sciss.io
Interface InterleavedStreamFile
-
- All Known Implementing Classes:
AudioFile
public interface InterleavedStreamFileARandomAccessFilewrapper class that usingjava.nioand aFloatBufferto 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 interleavedfloat[channel0][frame0], float[channel1][frame0], ..., float[channelN][frame0], float[channel0][frame1], ... etc ... float[channelN][frameM]InterleavedStreamFiles are used insideNondestructiveTrackEditors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()voidcopyFrames(InterleavedStreamFile target, long length)voidflush()intgetChannelNum()java.io.FilegetFile()longgetFrameNum()longgetFramePosition()voidreadFrames(float[][] data, int offset, int length)voidseekFrame(long position)voidsetFrameNum(long n)voidtruncate()voidwriteFrames(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()
-
-