13
0

OSC: Add /path/band extension for eq_* bands

This commit is contained in:
Len Ovens 2016-07-12 13:33:28 -07:00
parent fc06525bb2
commit 577140c0dd

View 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)) {