Add a comment for issue #751

This commit is contained in:
derselbst 2021-01-23 17:50:40 +01:00
parent 4fd7899d61
commit 70abf1953f
1 changed files with 10 additions and 2 deletions

View File

@ -980,7 +980,11 @@ void fluid_chorus_processmix(fluid_chorus_t *chorus, const fluid_real_t *in,
d_out[1] += out ; d_out[1] += out ;
} }
/* Write the current input sample into the circular buffer */ /* Write the current input sample into the circular buffer.
* Note that 'in' may be aliased with 'left_out'. Hence this must be done
* before "processing stereo unit" (below). This ensures input buffer
* not being overwritten by stereo unit output.
*/
push_in_delay_line(chorus, in[sample_index]); push_in_delay_line(chorus, in[sample_index]);
/* process stereo unit */ /* process stereo unit */
@ -1052,7 +1056,11 @@ void fluid_chorus_processreplace(fluid_chorus_t *chorus, const fluid_real_t *in,
d_out[1] += out ; d_out[1] += out ;
} }
/* Write the current input sample into the circular buffer */ /* Write the current input sample into the circular buffer.
* Note that 'in' may be aliased with 'left_out'. Hence this must be done
* before "processing stereo unit" (below). This ensures input buffer
* not being overwritten by stereo unit output.
*/
push_in_delay_line(chorus, in[sample_index]); push_in_delay_line(chorus, in[sample_index]);
/* process stereo unit */ /* process stereo unit */