Skip to content

Commit

Permalink
Initialized decay buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysalwen committed Jun 3, 2011
1 parent 83eed08 commit fd0dc37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kn0ck0ut6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ AKnockout::AKnockout(double rate) : Plugin<AKnockout>(p_n_ports)
gInFIFO2 = new float [MAX_FRAME_LENGTH];
gFFTworksp2 = (fftwf_complex*)fftwf_malloc(sizeof(fftwf_complex) * MAX_FRAME_LENGTH);
gAnaMagn2 = new float [MAX_FRAME_LENGTH];
gDecay = new float [MAX_FRAME_LENGTH];
gDecay = new float [MAX_FRAME_LENGTH];
memset(gDecay,0,MAX_FRAME_LENGTH*sizeof(float));
window = new double [FFTWINDOW];

forward_sp1= fftwf_plan_dft_r2c_1d(FFTWINDOW, gInFIFO , gFFTworksp,
Expand Down

0 comments on commit fd0dc37

Please sign in to comment.