From 44b42a076c4be6f1e544e018879449ca9307696b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 Jun 2008 18:45:19 +0000 Subject: OSC documentation fixes. Don't disable clients when they send a message with response id -1. git-svn-id: http://svn.drobilla.net/lad/ingen@1271 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCEngineReceiver.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/libs/engine/OSCEngineReceiver.cpp') diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp index c5ea7dae..5308a2f2 100644 --- a/src/libs/engine/OSCEngineReceiver.cpp +++ b/src/libs/engine/OSCEngineReceiver.cpp @@ -197,15 +197,13 @@ OSCEngineReceiver::ReceiveThread::_run() * This is based on the fact that the current responder is stored in a ref * counted pointer, and events just take a reference to that. Thus, events * may delete their responder if we've since switched to a new one, or the - * same one can stay around and serve a series of events. Reference counting - * is pretty sweet, eh? + * same one can stay around and serve a series of events. + * Hooray for reference counting. * * If this message came from the same source as the last message, no allocation * of responders or lo_addresses or any of it needs to be done. Unfortunately * the only way to check is by comparing URLs, because liblo addresses suck. - * - * Really, this entire thing is a basically just a crafty way of partially - * working around the fact that liblo addresses really suck. Oh well. + * Lack of a fast liblo address comparison really sucks here, in any case. */ int OSCEngineReceiver::set_response_address_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg, void* user_data) @@ -231,8 +229,6 @@ OSCEngineReceiver::set_response_address_cb(const char* path, const char* types, me->set_next_response_id(id); } else { me->disable_responses(); - if (me->_responder->client()) - me->_responder->client()->disable(); } // If this returns 0 no OSC commands will work @@ -614,14 +610,14 @@ OSCEngineReceiver::_disconnect_all_cb(const char* path, const char* types, lo_ar *

\b /ingen/set_port_value_immediate - Sets the value of a port for all voices (both AR and CR) * \arg \b response-id (integer) * \arg \b port-path (string) - Name of port - * \arg \b value (float) - Value to set port to

\n \n + * \arg \b value (float or blob) - Value to set port to

\n \n */ /** \page engine_osc_namespace *

\b /ingen/set_port_value_immediate - Sets the value of a port for a specific voice (both AR and CR) * \arg \b response-id (integer) * \arg \b port-path (string) - Name of port * \arg \b voice (integer) - Voice to set port value for - * \arg \b value (float) - Value to set port to

\n \n + * \arg \b value (float or blob) - Value to set port to

\n \n * * See documentation for set_port_value for the distinction between these two messages. */ -- cgit v1.2.1