framed
Interface FrameSource

All Known Implementing Classes:
CMS1, DCT, DHT, FFT, FrameReader, HammingWindow, HannWindow, Melfilter, Mfcc, RectangularWindow, Selection, SimulatedFrameSource, Slope, Visualizer1D, Visualizer2D, Window

public interface FrameSource

Once we leave the signal (i.e. sampled) level, we deal with frames. The Implementation of this interface allows for flexible combinations of the target algorithms. Usually, implementing objects receive an initialized source to read from.

Author:
sikoried

Method Summary
 int getFrameSize()
          Return the length of the frames (needed for the read call)
 boolean read(double[] buf)
          Extract the next frame from the the source stream using a window function
 java.lang.String toString()
          Return a String representation of the FrameSource
 

Method Detail

getFrameSize

int getFrameSize()
Return the length of the frames (needed for the read call)


read

boolean read(double[] buf)
             throws java.io.IOException
Extract the next frame from the the source stream using a window function

Parameters:
buf - buffer to save the frame; implementing objects may depend on a constant dimensionduring subsequent calls
Returns:
true on success, false if the stream terminated before the window was filled
Throws:
java.io.IOException

toString

java.lang.String toString()
Return a String representation of the FrameSource

Overrides:
toString in class java.lang.Object