mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
OSC cue button up events should not be errors, fixed
This commit is contained in:
parent
9d1a793fec
commit
ca2d254fdb
1 changed files with 11 additions and 1 deletions
|
|
@ -5096,24 +5096,34 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
|
|||
|
||||
if (!strncmp (path, "/cue/aux", 8)) {
|
||||
// set our Aux bus
|
||||
ret = cue_set (argv[0]->f, msg);
|
||||
if (argv[0]->f) {
|
||||
ret = cue_set (argv[0]->f, msg);
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
else if (!strncmp (path, "/cue/connect", 12)) {
|
||||
// Connect to default Aux bus
|
||||
if ((!argc) || argv[0]->f) {
|
||||
ret = cue_set (1, msg);
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
else if (!strncmp (path, "/cue/next_aux", 13)) {
|
||||
// switch to next Aux bus
|
||||
if ((!argc) || argv[0]->f) {
|
||||
ret = cue_next (msg);
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
else if (!strncmp (path, "/cue/previous_aux", 17)) {
|
||||
// switch to previous Aux bus
|
||||
if ((!argc) || argv[0]->f) {
|
||||
ret = cue_previous (msg);
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
else if (!strncmp (path, "/cue/send/fader/", 16) && strlen (path) > 16) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue