zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 8c89ba9a5345b0ae6e87a2a6221db08d7fa2e61b
parent d526e4bb167b4d0675b47f18d0aa9bf5844ae021
Author: Nik Nyby <nikolas@gnu.org>
Date:   Sat, 12 Mar 2022 23:33:19 -0500

Remove unused variable in demo version silencing code

This `tmp` var doesn't appear to be doing anything, and is throwing a compiler warning. Can it be removed?
Diffstat:
Msrc/Misc/Master.cpp | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/Misc/Master.cpp b/src/Misc/Master.cpp @@ -1442,7 +1442,6 @@ bool Master::AudioOut(float *outl, float *outr) if(seconds > 10*60) {//10 minute trial shutup = true; for(int i = 0; i < synth.buffersize; ++i) { - float tmp = (synth.buffersize_f - i) / synth.buffersize_f; outl[i] *= 0.0f; outr[i] *= 0.0f; }