zynaddsubfx

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

commit 62e76de2b5e9f67167a83b289214842cf80950e2
parent f0495a2fe5fcaf74452ececef2c9b90ac46cfe21
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Sun, 20 Nov 2016 11:27:46 -0500

Make Post Demo Time Version Fully Quiet

Diffstat:
Msrc/Misc/Master.cpp | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/Misc/Master.cpp b/src/Misc/Master.cpp @@ -914,6 +914,11 @@ bool Master::AudioOut(float *outr, float *outl) double seconds = time.time()*synth.buffersize_f/synth.samplerate_f; 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; + } } #endif