ZynAddSubFX: minor fixes from upstream

* Fixing Envelopes not going to zero
  * FLTK1.3: Applying patch to force code generation
(cherry picked from commit a1006f7a32)
This commit is contained in:
Tobias Doerffel
2011-06-15 23:10:17 +02:00
parent f791b08840
commit 56d7e2e6ec
5 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@
#include "Presets.h"
#define MAX_ENVELOPE_POINTS 40
#define MIN_ENVELOPE_DB -40
#define MIN_ENVELOPE_DB -400
class EnvelopeParams:public Presets
{

View File

@@ -183,7 +183,7 @@ REALTYPE Envelope::envout_dB()
if(out > 0.001)
envoutval = rap2dB(out);
else
envoutval = -40.0;
envoutval = MIN_ENVELOPE_DB;
}
else
out = dB2rap(envout());

View File

@@ -32,7 +32,7 @@ decl {\#include "../Misc/Config.h"} {public
class BankProcess_ {} {
Function {process()} {open return_type {virtual void}
} {}
} {code{;}}
decl {Bank *bank;} {public
}
}

View File

@@ -129,7 +129,7 @@ delete [] spc;} {selected
class PSlider {: {public Fl_Slider}
} {
Function {PSlider(int x,int y, int w, int h, const char *label=0):Fl_Slider(x,y,w,h,label)} {} {}
Function {PSlider(int x,int y, int w, int h, const char *label=0):Fl_Slider(x,y,w,h,label)} {} {code{;}}
Function {handle(int event)} {return_type int
} {
code {int X=x(),Y=y(),W=w(),H=h();

View File

@@ -18,9 +18,9 @@ decl {\#include "../Params/Presets.h"} {public
class PresetsUI_ {} {
Function {refresh()} {open return_type {virtual void}
} {}
} {code{;}}
Function {~PresetsUI_()} {open return_type virtual
} {}
} {code{;}}
}
class PresetsUI {} {