mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
OSC: account for user sending the wrong number of paramters gracefully
This commit is contained in:
parent
6e4c9490d4
commit
d7fcdbfe1d
1 changed files with 4 additions and 0 deletions
|
|
@ -964,6 +964,10 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
|
|||
|
||||
ret = 0;
|
||||
} else
|
||||
if (strstr (path, "/strip") && (argc != 1)) {
|
||||
// All of the strip commands below require 1 parameter
|
||||
PBD::warning << "OSC: Wrong number of parameters." << endmsg;
|
||||
} else
|
||||
if (!strncmp (path, "/strip/gain/", 12) && strlen (path) > 12) {
|
||||
// in dB
|
||||
int ssid = atoi (&path[12]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue