From 0c3eaf188b5b77c4ee4dd4351b10eb039c565024 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Feb 2021 20:00:04 +0100 Subject: [PATCH] OSC: liblo compatibility fix see also 770fd1519c83a2ce0fb805d17299b91082a8bcb1 --- libs/surfaces/osc/osc.cc | 7 +++---- libs/surfaces/osc/osc.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index c12fa2293d..ae6a08238b 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -5080,7 +5080,7 @@ OSC::select_plugin_parameter (const char *path, const char* types, lo_arg **argv const char * par = strstr (&path[25], "/"); if (par) { piid = atoi (&path[25]); - _sel_plugin (piid, msg); + _sel_plugin (piid, get_address (msg)); paid = atoi (&par[1]); value = argv[0]->f; // we have plugin id too @@ -6220,7 +6220,6 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo int OSC::cue_set (uint32_t aux, lo_message msg) { - return _cue_set (aux, get_address (msg)); } @@ -6604,7 +6603,7 @@ OSC::text_message_with_id (std::string path, uint32_t ssid, std::string val, boo // we have to have a sorted list of stripables that have sends pointed at our aux // we can use the one in osc.cc to get an aux list OSC::Sorted -OSC::cue_get_sorted_stripables(boost::shared_ptr aux, uint32_t id, lo_message msg) +OSC::cue_get_sorted_stripables(boost::shared_ptr aux, uint32_t id, lo_address addr) { Sorted sorted; @@ -6614,7 +6613,7 @@ OSC::cue_get_sorted_stripables(boost::shared_ptr aux, uint32_t id, lo if (i->sends_only) { boost::shared_ptr s (i->r.lock()); sorted.push_back (s); - s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::cue_set, this, id, msg), this); + s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this); } } sort (sorted.begin(), sorted.end(), StripableByPresentationOrder()); diff --git a/libs/surfaces/osc/osc.h b/libs/surfaces/osc/osc.h index 08439f6e34..cd79b42719 100644 --- a/libs/surfaces/osc/osc.h +++ b/libs/surfaces/osc/osc.h @@ -348,7 +348,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI } // cue - Sorted cue_get_sorted_stripables(boost::shared_ptr aux, uint32_t id, lo_message msg); + Sorted cue_get_sorted_stripables(boost::shared_ptr aux, uint32_t id, lo_address); int cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo_message msg); int cue_set (uint32_t aux, lo_message msg); int _cue_set (uint32_t aux, lo_address addr);