zynaddsubfx

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

commit a95fadd348fa52ba2cea2d17e7549508a01712f6
parent c6aac1a512b0d3bf5013dd3712bbc2f5d60f5211
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Mon,  3 Oct 2016 19:29:27 -0400

Fix Loading Zyn-Fusion Demo

Diffstat:
Msrc/Misc/Master.cpp | 8++++++++
Msrc/main.cpp | 2+-
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/Misc/Master.cpp b/src/Misc/Master.cpp @@ -907,6 +907,14 @@ bool Master::AudioOut(float *outr, float *outl) //update the global frame timer time++; +#ifdef DEMO_VERSION + double seconds = time.time()*synth.buffersize_f/synth.samplerate_f; + if(seconds > 10*60) {//10 minute trial + shutup = true; + } +#endif + + return true; } diff --git a/src/main.cpp b/src/main.cpp @@ -636,7 +636,7 @@ int wmidi = -1; printf("[INFO] Launching Zyn-Fusion...\n"); const char *addr = middleware->getServerAddress(); if(fork() == 0) { - execlp("zyn-fusion", "zyn-fusion", "--builtin", "--no-hotload", addr, 0); + execlp("zyn-fusion", "zyn-fusion", addr, "--builtin", "--no-hotload", 0); err(1,"Failed to launch Zyn-Fusion"); }