aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 10:45:02 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 10:45:02 +0200
commitff1e8cdf60932306f9ab8516d89f4399234a815e (patch)
treed1436e4a4d9642924c5b454cd2626f27a62384c1
parentbb083788ddad5eda1ada3801c2e1e3b13ddb7b02 (diff)
downloadrouter.lv2-ff1e8cdf60932306f9ab8516d89f4399234a815e.zip
router.lv2-ff1e8cdf60932306f9ab8516d89f4399234a815e.tar.gz
router.lv2-ff1e8cdf60932306f9ab8516d89f4399234a815e.tar.bz2
router.lv2-ff1e8cdf60932306f9ab8516d89f4399234a815e.tar.xz
fix various pedantic compiler warnings.
-rw-r--r--VERSION2
-rw-r--r--meson.build2
-rw-r--r--router_atom_bouncer.c46
-rw-r--r--router_atom_deflector.c22
-rw-r--r--router_atom_sprinkler.c46
-rw-r--r--router_audio_bouncer.c48
-rw-r--r--router_audio_deflector.c21
-rw-r--r--router_audio_sprinkler.c48
8 files changed, 154 insertions, 81 deletions
diff --git a/VERSION b/VERSION
index b9dbcf6..ef2f8c8 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.79
+0.1.87
diff --git a/meson.build b/meson.build
index 948e699..1cfc507 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('router.lv2', 'c', default_options : [
'buildtype=release',
- 'warning_level=1',
+ 'warning_level=3',
'werror=false',
'b_lto=false',
'c_std=c11'])
diff --git a/router_atom_bouncer.c b/router_atom_bouncer.c
index e83f98d..8376b0d 100644
--- a/router_atom_bouncer.c
+++ b/router_atom_bouncer.c
@@ -56,7 +56,8 @@ struct _plughandle_t {
};
static void
-_intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_next_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -68,13 +69,16 @@ _intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index > handle->state.roll_over_index)
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_nextIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_nextIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_prev_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -86,13 +90,16 @@ _intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index < 1)
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_prevIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_prevIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_roll_over_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -100,12 +107,14 @@ _intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_current_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -113,7 +122,8 @@ _intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
@@ -145,8 +155,9 @@ static const props_def_t defs [MAX_NPROPS] = {
};
static LV2_Handle
-instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+instantiate(const LV2_Descriptor* descriptor, double rate __attribute__((unused)),
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -170,9 +181,12 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
_craft_init(&handle->notify, handle->map);
_craft_init(&handle->event_out, handle->map);
- handle->urid.sprinkler_nextIndex = handle->map->map(handle->map->handle, ROUTER__nextIndex);
- handle->urid.sprinkler_prevIndex = handle->map->map(handle->map->handle, ROUTER__prevIndex);
- handle->urid.sprinkler_currentIndex = handle->map->map(handle->map->handle, ROUTER__currentIndex);
+ handle->urid.sprinkler_nextIndex = handle->map->map(handle->map->handle,
+ ROUTER__nextIndex);
+ handle->urid.sprinkler_prevIndex = handle->map->map(handle->map->handle,
+ ROUTER__prevIndex);
+ handle->urid.sprinkler_currentIndex = handle->map->map(handle->map->handle,
+ ROUTER__currentIndex);
if(!props_init(&handle->props, descriptor->URI,
defs, MAX_NPROPS, &handle->state, &handle->stash,
@@ -221,7 +235,7 @@ connect_port(LV2_Handle instance, uint32_t port, void *data)
}
static void
-run(LV2_Handle instance, uint32_t nsamples)
+run(LV2_Handle instance, uint32_t nsamples __attribute__((unused)))
{
plughandle_t *handle = instance;
diff --git a/router_atom_deflector.c b/router_atom_deflector.c
index 319d618..366e569 100644
--- a/router_atom_deflector.c
+++ b/router_atom_deflector.c
@@ -52,7 +52,8 @@ struct _plughandle_t {
};
static void
-_intercept_gate_toggle(void *data, int64_t frames, props_impl_t *impl)
+_intercept_gate_toggle(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -61,8 +62,10 @@ _intercept_gate_toggle(void *data, int64_t frames, props_impl_t *impl)
handle->state.gate_toggle = false;
handle->state.gate_state = !handle->state.gate_state;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.deflector_gateToggle, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.deflector_gateState, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.deflector_gateToggle, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.deflector_gateState, &handle->notify.ref);
}
}
@@ -81,8 +84,9 @@ static const props_def_t defs [MAX_NPROPS] = {
};
static LV2_Handle
-instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+instantiate(const LV2_Descriptor* descriptor, double rate __attribute__((unused)),
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -106,8 +110,10 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
_craft_init(&handle->notify, handle->map);
_craft_init(&handle->event_out, handle->map);
- handle->urid.deflector_gateToggle = handle->map->map(handle->map->handle, ROUTER__gateToggle);
- handle->urid.deflector_gateState = handle->map->map(handle->map->handle, ROUTER__gateState);
+ handle->urid.deflector_gateToggle = handle->map->map(handle->map->handle,
+ ROUTER__gateToggle);
+ handle->urid.deflector_gateState = handle->map->map(handle->map->handle,
+ ROUTER__gateState);
if(!props_init(&handle->props, descriptor->URI,
defs, MAX_NPROPS, &handle->state, &handle->stash,
@@ -147,7 +153,7 @@ connect_port(LV2_Handle instance, uint32_t port, void *data)
}
static void
-run(LV2_Handle instance, uint32_t nsamples)
+run(LV2_Handle instance, uint32_t nsamples __attribute__((unused)))
{
plughandle_t *handle = instance;
diff --git a/router_atom_sprinkler.c b/router_atom_sprinkler.c
index 500c78c..0662d42 100644
--- a/router_atom_sprinkler.c
+++ b/router_atom_sprinkler.c
@@ -56,7 +56,8 @@ struct _plughandle_t {
};
static void
-_intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_next_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -68,13 +69,16 @@ _intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index > handle->state.roll_over_index)
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_nextIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_nextIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_prev_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -86,13 +90,16 @@ _intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index < 1)
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_prevIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_prevIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_roll_over_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -100,12 +107,14 @@ _intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_current_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -113,7 +122,8 @@ _intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
@@ -145,8 +155,9 @@ static const props_def_t defs [MAX_NPROPS] = {
};
static LV2_Handle
-instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+instantiate(const LV2_Descriptor* descriptor, double rate __attribute__((unused)),
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -171,9 +182,12 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
for(unsigned i = 0; i < MAX_NOUTS; i++)
_craft_init(&handle->event_out[i], handle->map);
- handle->urid.sprinkler_nextIndex = handle->map->map(handle->map->handle, ROUTER__nextIndex);
- handle->urid.sprinkler_prevIndex = handle->map->map(handle->map->handle, ROUTER__prevIndex);
- handle->urid.sprinkler_currentIndex = handle->map->map(handle->map->handle, ROUTER__currentIndex);
+ handle->urid.sprinkler_nextIndex = handle->map->map(handle->map->handle,
+ ROUTER__nextIndex);
+ handle->urid.sprinkler_prevIndex = handle->map->map(handle->map->handle,
+ ROUTER__prevIndex);
+ handle->urid.sprinkler_currentIndex = handle->map->map(handle->map->handle,
+ ROUTER__currentIndex);
if(!props_init(&handle->props, descriptor->URI,
defs, MAX_NPROPS, &handle->state, &handle->stash,
@@ -222,7 +236,7 @@ connect_port(LV2_Handle instance, uint32_t port, void *data)
}
static void
-run(LV2_Handle instance, uint32_t nsamples)
+run(LV2_Handle instance, uint32_t nsamples __attribute__((unused)))
{
plughandle_t *handle = instance;
diff --git a/router_audio_bouncer.c b/router_audio_bouncer.c
index 2b53595..d10d90a 100644
--- a/router_audio_bouncer.c
+++ b/router_audio_bouncer.c
@@ -67,7 +67,8 @@ struct _plughandle_t {
};
static void
-_intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_next_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -79,13 +80,16 @@ _intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index > handle->state.roll_over_index)
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.bouncer_nextIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.bouncer_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.bouncer_nextIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.bouncer_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_prev_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -97,13 +101,16 @@ _intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index < 1)
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.bouncer_prevIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.bouncer_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.bouncer_prevIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.bouncer_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_roll_over_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -111,12 +118,14 @@ _intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.bouncer_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.bouncer_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_current_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -124,12 +133,14 @@ _intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.bouncer_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.bouncer_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_switch_period(void *data, int64_t frames, props_impl_t *impl)
+_intercept_switch_period(void *data, int64_t frames __attribute__((unused)),
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -173,7 +184,8 @@ static const props_def_t defs [MAX_NPROPS] = {
static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -212,11 +224,15 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
_craft_init(&handle->notify, handle->map);
- handle->urid.bouncer_nextIndex = handle->map->map(handle->map->handle, ROUTER__nextIndex);
- handle->urid.bouncer_prevIndex = handle->map->map(handle->map->handle, ROUTER__prevIndex);
- handle->urid.bouncer_currentIndex = handle->map->map(handle->map->handle, ROUTER__currentIndex);
+ handle->urid.bouncer_nextIndex = handle->map->map(handle->map->handle,
+ ROUTER__nextIndex);
+ handle->urid.bouncer_prevIndex = handle->map->map(handle->map->handle,
+ ROUTER__prevIndex);
+ handle->urid.bouncer_currentIndex = handle->map->map(handle->map->handle,
+ ROUTER__currentIndex);
- const LV2_URID bufsz_maxBlockLength = handle->map->map(handle->map->handle, LV2_BUF_SIZE__maxBlockLength);
+ const LV2_URID bufsz_maxBlockLength = handle->map->map(handle->map->handle,
+ LV2_BUF_SIZE__maxBlockLength);
int32_t max_block_length = 0;
for(LV2_Options_Option *opt = opts;
diff --git a/router_audio_deflector.c b/router_audio_deflector.c
index d3d32e9..c224217 100644
--- a/router_audio_deflector.c
+++ b/router_audio_deflector.c
@@ -62,7 +62,8 @@ struct _plughandle_t {
};
static void
-_intercept_gate_toggle(void *data, int64_t frames, props_impl_t *impl)
+_intercept_gate_toggle(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -71,13 +72,16 @@ _intercept_gate_toggle(void *data, int64_t frames, props_impl_t *impl)
handle->state.gate_toggle = false;
handle->state.gate_state = !handle->state.gate_state;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.deflector_gateToggle, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.deflector_gateState, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.deflector_gateToggle, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.deflector_gateState, &handle->notify.ref);
}
}
static void
-_intercept_switch_period(void *data, int64_t frames, props_impl_t *impl)
+_intercept_switch_period(void *data, int64_t frames __attribute__((unused)),
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -108,7 +112,8 @@ static const props_def_t defs [MAX_NPROPS] = {
static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -136,8 +141,10 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
_craft_init(&handle->notify, handle->map);
- handle->urid.deflector_gateToggle = handle->map->map(handle->map->handle, ROUTER__gateToggle);
- handle->urid.deflector_gateState = handle->map->map(handle->map->handle, ROUTER__gateState);
+ handle->urid.deflector_gateToggle = handle->map->map(handle->map->handle,
+ ROUTER__gateToggle);
+ handle->urid.deflector_gateState = handle->map->map(handle->map->handle,
+ ROUTER__gateState);
if(!props_init(&handle->props, descriptor->URI,
defs, MAX_NPROPS, &handle->state, &handle->stash,
diff --git a/router_audio_sprinkler.c b/router_audio_sprinkler.c
index 49c016c..7558645 100644
--- a/router_audio_sprinkler.c
+++ b/router_audio_sprinkler.c
@@ -67,7 +67,8 @@ struct _plughandle_t {
};
static void
-_intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_next_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -79,13 +80,16 @@ _intercept_next_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index > handle->state.roll_over_index)
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_nextIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_nextIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_prev_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -97,13 +101,16 @@ _intercept_prev_index(void *data, int64_t frames, props_impl_t *impl)
if(handle->state.current_index < 1)
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_prevIndex, &handle->notify.ref);
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_prevIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_roll_over_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -111,12 +118,14 @@ _intercept_roll_over_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = 1;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
+_intercept_current_index(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -124,12 +133,14 @@ _intercept_current_index(void *data, int64_t frames, props_impl_t *impl)
{
handle->state.current_index = handle->state.roll_over_index;
- props_set(&handle->props, &handle->notify.forge, frames, handle->urid.sprinkler_currentIndex, &handle->notify.ref);
+ props_set(&handle->props, &handle->notify.forge, frames,
+ handle->urid.sprinkler_currentIndex, &handle->notify.ref);
}
}
static void
-_intercept_switch_period(void *data, int64_t frames, props_impl_t *impl)
+_intercept_switch_period(void *data, int64_t frames __attribute__((unused)),
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -173,7 +184,8 @@ static const props_def_t defs [MAX_NPROPS] = {
static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -212,11 +224,15 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
_craft_init(&handle->notify, handle->map);
- handle->urid.sprinkler_nextIndex = handle->map->map(handle->map->handle, ROUTER__nextIndex);
- handle->urid.sprinkler_prevIndex = handle->map->map(handle->map->handle, ROUTER__prevIndex);
- handle->urid.sprinkler_currentIndex = handle->map->map(handle->map->handle, ROUTER__currentIndex);
+ handle->urid.sprinkler_nextIndex = handle->map->map(handle->map->handle,
+ ROUTER__nextIndex);
+ handle->urid.sprinkler_prevIndex = handle->map->map(handle->map->handle,
+ ROUTER__prevIndex);
+ handle->urid.sprinkler_currentIndex = handle->map->map(handle->map->handle,
+ ROUTER__currentIndex);
- const LV2_URID bufsz_maxBlockLength = handle->map->map(handle->map->handle, LV2_BUF_SIZE__maxBlockLength);
+ const LV2_URID bufsz_maxBlockLength = handle->map->map(handle->map->handle,
+ LV2_BUF_SIZE__maxBlockLength);
int32_t max_block_length = 0;
for(LV2_Options_Option *opt = opts;