projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OSC: make some more paths work with or without a parameter.
[ardour.git]
/
libs
/
surfaces
/
osc
/
osc.cc
diff --git
a/libs/surfaces/osc/osc.cc
b/libs/surfaces/osc/osc.cc
index a0985f7850bd8a49b78860346cd0fee8a3833c94..c3d2babcff966b74312ab4ffbaf574bf35419281 100644
(file)
--- a/
libs/surfaces/osc/osc.cc
+++ b/
libs/surfaces/osc/osc.cc
@@
-4031,21
+4031,21
@@
OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
}
else if (!strncmp (path, "/cue/connect", 12)) {
// Connect to default Aux bus
}
else if (!strncmp (path, "/cue/connect", 12)) {
// Connect to default Aux bus
- if (argv[0]->i) {
+ if (
(!argc) ||
argv[0]->i) {
cue_set (1, msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/next_aux", 13)) {
// switch to next Aux bus
cue_set (1, msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/next_aux", 13)) {
// switch to next Aux bus
- if (argv[0]->i) {
+ if (
(!argc) ||
argv[0]->i) {
cue_next (msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/previous_aux", 17)) {
// switch to previous Aux bus
cue_next (msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/previous_aux", 17)) {
// switch to previous Aux bus
- if (argv[0]->i) {
+ if (
(!argc) ||
argv[0]->i) {
cue_previous (msg);
}
ret = 0;
cue_previous (msg);
}
ret = 0;