FIR: set block size on new buffer

feature_setBlockSize
Chip Audette 8 years ago
parent 24200beb5f
commit 89bd29e05d
  1. 7
      AudioFilterFIR_F32.h

@ -98,10 +98,9 @@ void AudioFilterFIR_F32::update(void)
//apply the FIR
arm_fir_f32(&fir_inst, block->data, block_new->data, block->length);
//Serial.print("AudioFilterFIR_F32: update(): fir_inst: ");
//Serial.print(fir_inst.numTaps); Serial.print(", ");
//Serial.print(fir_inst.pState[10]*1000.f); Serial.print(", ");
//Serial.print(fir_inst.pCoeffs[10]*1000.f); Serial.println();
block_new->length = block->length;
//transmit the data
AudioStream_F32::transmit(block_new); // send the FIR output
AudioStream_F32::release(block_new);
}

Loading…
Cancel
Save