uk.co.simphoney.audio.dft
Class ChunkFeeder

java.lang.Object
  extended by uk.co.simphoney.audio.DataBuilder
      extended by uk.co.simphoney.audio.dft.ChunkFeeder

public class ChunkFeeder
extends DataBuilder


Field Summary
 
Fields inherited from class uk.co.simphoney.audio.DataBuilder
sizeObservers
 
Constructor Summary
ChunkFeeder()
           
 
Method Summary
 void addSizeObserver(SpectrogramDataListener o)
           
 long chunkStartInSamples(long chunkPtr)
           
protected  void doWork()
          Does the building.
 int getChunkAtFrame(long framePtr)
           
 void setParameters(int chunkSize, int fftsize, LimitedAudioReader reader, ChunkReaderProcess process, FFTSpectrumClient client)
           
 boolean validAt(long chunkPtr2)
           
 
Methods inherited from class uk.co.simphoney.audio.DataBuilder
abortConstruction, dispose, isConstructing, startConstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkFeeder

public ChunkFeeder()
Method Detail

setParameters

public void setParameters(int chunkSize,
                          int fftsize,
                          LimitedAudioReader reader,
                          ChunkReaderProcess process,
                          FFTSpectrumClient client)

doWork

protected void doWork()
Description copied from class: DataBuilder
Does the building. Should test Thread.interrupted() and return ASAP if true.

Specified by:
doWork in class DataBuilder

addSizeObserver

public void addSizeObserver(SpectrogramDataListener o)

chunkStartInSamples

public long chunkStartInSamples(long chunkPtr)

getChunkAtFrame

public int getChunkAtFrame(long framePtr)

validAt

public boolean validAt(long chunkPtr2)