From 2f19e80d382156bd7de0d655510f48fad2588dba Mon Sep 17 00:00:00 2001 From: Marcus Weseloh Date: Mon, 20 Nov 2017 19:59:47 +0100 Subject: [PATCH] Rename buffer_count to num_buffers --- src/bindings/fluid_ladspa.c | 6 +++--- src/bindings/fluid_ladspa.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bindings/fluid_ladspa.c b/src/bindings/fluid_ladspa.c index 2ccf7e1d..1f74c06a 100644 --- a/src/bindings/fluid_ladspa.c +++ b/src/bindings/fluid_ladspa.c @@ -270,7 +270,7 @@ void delete_fluid_ladspa_fx(fluid_ladspa_fx_t *fx) * @return FLUID_OK on success, otherwise FLUID_FAILED */ int fluid_ladspa_add_host_ports(fluid_ladspa_fx_t *fx, const char *prefix, - int buffer_count, fluid_real_t *buffers[]) + int num_buffers, fluid_real_t *buffers[]) { int i; char name[99]; @@ -283,10 +283,10 @@ int fluid_ladspa_add_host_ports(fluid_ladspa_fx_t *fx, const char *prefix, } /* Create nodes for all channels */ - for (i = 0; i < buffer_count; i++) + for (i = 0; i < num_buffers; i++) { /* If there is more than one buffer, then append a 1-based index to each node name */ - if (buffer_count > 1) { + if (num_buffers > 1) { FLUID_SNPRINTF(name, sizeof(name), "%s%d", prefix, (i + 1)); } else diff --git a/src/bindings/fluid_ladspa.h b/src/bindings/fluid_ladspa.h index 5ce71d63..7e86c805 100644 --- a/src/bindings/fluid_ladspa.h +++ b/src/bindings/fluid_ladspa.h @@ -35,6 +35,6 @@ int fluid_ladspa_set_sample_rate(fluid_ladspa_fx_t *fx, fluid_real_t sample_rate void fluid_ladspa_run(fluid_ladspa_fx_t *fx, int block_count, int block_size); int fluid_ladspa_add_host_ports(fluid_ladspa_fx_t *fx, const char *prefix, - int buffer_count, fluid_real_t *buffers[]); + int num_buffers, fluid_real_t *buffers[]); #endif /* _FLUID_LADSPA_H */