pantherb / setBfree

DSP tonewheel organ
http://setbfree.org
GNU General Public License v2.0
194 stars 35 forks source link

b_whirl/whirl.c: 4 * pointless calls to memset ? #43

Closed dcb314 closed 7 years ago

dcb314 commented 7 years ago

Near the end of the zeroBuffers function, there are four pointless calls to memset to init buffers HLbuf, HRbuf, DLbuf, DRbuf.

memset(w->HLbuf, 0, WHIRL_BUF_SIZE_SAMPLES); memset(w->HRbuf, 0, WHIRL_BUF_SIZE_SAMPLES); memset(w->DLbuf, 0, WHIRL_BUF_SIZE_SAMPLES); memset(w->DRbuf, 0, WHIRL_BUF_SIZE_SAMPLES);

Suggest remove.