Package 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

    • 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()