From 35a1bc58666af994ee579c75621ab31413ffc7c8 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Wed, 9 Oct 2024 01:56:13 +0200 Subject: [PATCH] fix:use FAUSTFLOAt macro in Nim faust wrapper Signed-off-by: Christopher Arndt --- examples/faustlpf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/faustlpf.h b/examples/faustlpf.h index 75f0c56..688138b 100644 --- a/examples/faustlpf.h +++ b/examples/faustlpf.h @@ -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) { 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) { 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; } -void set_cutoff(faustlpf* dsp, float value) { +void set_cutoff(faustlpf* dsp, FAUSTFLOAT value) { dsp->fHslider0 = value; }