From 4f8ab20355140a0d009fc487cd60abf80ff2bb5c Mon Sep 17 00:00:00 2001 From: carlo-bramini Date: Sat, 21 Oct 2017 12:46:13 +0200 Subject: [PATCH] fluid_gen_info[] made as a const object --- bindings/fluidmax/fluidmax.c | 2 +- src/synth/fluid_gen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/fluidmax/fluidmax.c b/bindings/fluidmax/fluidmax.c index 0651f99f..66556dd7 100644 --- a/bindings/fluidmax/fluidmax.c +++ b/bindings/fluidmax/fluidmax.c @@ -1065,7 +1065,7 @@ fluidmax_version(t_object *o) post(" Max/MSP integration by Norbert Schnell IMTR IRCAM - Centre Pompidou"); } -extern fluid_gen_info_t fluid_gen_info[]; +extern const fluid_gen_info_t fluid_gen_info[]; static void fluidmax_print(t_object *o, Symbol *s, short ac, Atom *at) diff --git a/src/synth/fluid_gen.c b/src/synth/fluid_gen.c index 3d8d4759..0da90eb3 100644 --- a/src/synth/fluid_gen.c +++ b/src/synth/fluid_gen.c @@ -24,7 +24,7 @@ /* See SFSpec21 $8.1.3 */ -fluid_gen_info_t fluid_gen_info[] = { +const fluid_gen_info_t fluid_gen_info[] = { /* number/name init scale min max def */ { GEN_STARTADDROFS, 1, 1, 0.0f, 1e10f, 0.0f }, { GEN_ENDADDROFS, 1, 1, -1e10f, 0.0f, 0.0f },