@Override protected void prepareBlock(){
  double[] frame=getNextFrame();
  if (frame == null)   return;
  int frameLength=frameProvider.getFrameLengthSamples();
  if (processor != null)   processor.applyInline(frame,0,frameLength);
  if (outputWindow != null)   outputWindow.applyInline(frame,0,frameLength);
  if (memory.length < frameLength) {
    double[] oldMemory=memory;
    memory=new double[frameLength];
    System.arraycopy(oldMemory,0,memory,0,oldMemory.length);
  }
  for (int i=0; i < frameLength; i++) {
    memory[i]+=frame[i];
  }
}

@ Override protected void prepareBlock ( ) { double [ ] frame = getNextFrame ( ) ; if ( frame == null ) return ; int frameLength = frameProvider . getFrameLengthSamples ( ) ; if ( processor != null ) processor . applyInline ( frame , 0 , frameLength ) ; if ( outputWindow != null ) outputWindow . applyInline ( frame , 0 , frameLength ) ; if ( memory . length < frameLength ) { double [ ] oldMemory = memory ; memory = new double [ frameLength ] ; System . arraycopy ( oldMemory , 0 , memory , 0 , oldMemory . length ) ; } for ( int i = 0 ; i < frameLength ; i ++ ) { memory [ i ] += frame [ i ] ; } }
prepare one block of data for output . this method is called from the superclass before readblock ( ) is called .
