OSC: Add /path/band extension for eq_* bands
authorLen Ovens <len@ovenwerks.net>
Tue, 12 Jul 2016 20:33:28 +0000 (13:33 -0700)
committerLen Ovens <len@ovenwerks.net>
Tue, 12 Jul 2016 20:33:28 +0000 (13:33 -0700)
libs/surfaces/osc/osc.cc

index 556ac8cf5bff0ed82040637ecf9dfa3b9daf56a9..77a222d2c4bc1713476b9202e24609aa61e10e2a 100644 (file)
@@ -944,6 +944,26 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
                        route_solo (ssid, argv[0]->f == 1.0, msg);
                        ret = 0;
                }
+               else if (!strncmp (path, "/select/eq_gain/", 16) && strlen (path) > 16) {
+                       int ssid = atoi (&path[16]);
+                       route_solo (ssid, argv[0]->f == 1.0, msg);
+                       ret = 0;
+               }
+               else if (!strncmp (path, "/select/eq_freq/", 16) && strlen (path) > 16) {
+                       int ssid = atoi (&path[16]);
+                       route_solo (ssid, argv[0]->f == 1.0, msg);
+                       ret = 0;
+               }
+               else if (!strncmp (path, "/select/eq_q/", 13) && strlen (path) > 13) {
+                       int ssid = atoi (&path[13]);
+                       route_solo (ssid, argv[0]->f == 1.0, msg);
+                       ret = 0;
+               }
+               else if (!strncmp (path, "/select/eq_shape/", 17) && strlen (path) > 17) {
+                       int ssid = atoi (&path[17]);
+                       route_solo (ssid, argv[0]->f == 1.0, msg);
+                       ret = 0;
+               }
        }
 
        if ((ret && _debugmode == Unhandled)) {