Compare commits

...

1 Commits

Author SHA1 Message Date
Christopher Arndt 35a1bc5866 fix:use FAUSTFLOAt macro in Nim faust wrapper
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2024-10-09 01:56:13 +02:00
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) {
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;
}