fix: use FAUSTFLOAT macro in Nim faust wrapper

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
Christopher Arndt 2024-10-09 01:56:13 +02:00
parent 9b33bf10bf
commit b37954a27b
1 changed files with 4 additions and 4 deletions

View File

@ -160,7 +160,7 @@ bool parameter_is_logarithmic(unsigned index) {
} }
} }
float get_parameter(faustlpf* dsp, unsigned index) { FAUSTFLOAT get_parameter(faustlpf* dsp, unsigned index) {
switch (index) { switch (index) {
case 0: case 0:
@ -172,7 +172,7 @@ float get_parameter(faustlpf* dsp, unsigned index) {
} }
} }
void set_parameter(faustlpf* dsp, unsigned index, float value) { void set_parameter(faustlpf* dsp, unsigned index, FAUSTFLOAT value) {
switch (index) { switch (index) {
case 0: case 0:
@ -187,12 +187,12 @@ void set_parameter(faustlpf* dsp, unsigned index, float value) {
} }
float get_cutoff(faustlpf* dsp) { FAUSTFLOAT get_cutoff(faustlpf* dsp) {
return dsp->fHslider0; return dsp->fHslider0;
} }
void set_cutoff(faustlpf* dsp, float value) { void set_cutoff(faustlpf* dsp, FAUSTFLOAT value) {
dsp->fHslider0 = value; dsp->fHslider0 = value;
} }