diff options
author | Len Ovens <len@ovenwerks.net> | 2016-07-12 13:33:28 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2016-07-12 13:33:28 -0700 |
commit | 577140c0dde3b10945221971effd9f665188182c (patch) | |
tree | a311997681b12a75e6e675dd3d2264a6a0867817 /libs | |
parent | fc06525bb24a049e8850c1f40725f30c6c006605 (diff) |
OSC: Add /path/band extension for eq_* bands
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 556ac8cf5b..77a222d2c4 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -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)) { |