diff options
-rw-r--r-- | backends/midi.c | 3 | ||||
-rw-r--r-- | backends/osc.md | 2 | ||||
-rw-r--r-- | backends/sacn.c | 2 | ||||
-rw-r--r-- | core/plugin.c | 3 |
4 files changed, 5 insertions, 5 deletions
diff --git a/backends/midi.c b/backends/midi.c index 4bf846a..a5f953e 100644 --- a/backends/midi.c +++ b/backends/midi.c @@ -247,8 +247,7 @@ static int midi_set(instance* inst, size_t num, channel** c, channel_value* v){ } break; case pitchbend: - //TODO check whether this actually works that well - midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, (v[u].normalised * 16383.0) - 8192); + midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, (int16_t) (v[u].normalised * 16383.0) - 8192); break; default: midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, v[u].normalised * 127.0); diff --git a/backends/osc.md b/backends/osc.md index 61b3324..939c742 100644 --- a/backends/osc.md +++ b/backends/osc.md @@ -30,7 +30,7 @@ This is done by specifying *patterns* in the instance configuration using an ass ``` The pattern will be matched only against the local part (that is, the path excluding any configured instance root). -Patterns may contain the following expressions (conforming to the [OSC pattern matching specification](http://opensoundcontrol.org/spec-1_0)): +Patterns may contain the following expressions (conforming to the [OSC pattern matching specification](https://opensoundcontrol.stanford.edu/spec-1_0.html)): * `?` matches any single legal character * `*` matches zero or more legal characters * A comma-separated list of strings inside curly braces `{}` matches any of the strings diff --git a/backends/sacn.c b/backends/sacn.c index 4e01402..3c0cdab 100644 --- a/backends/sacn.c +++ b/backends/sacn.c @@ -314,7 +314,7 @@ static int sacn_transmit(instance* inst, sacn_output_universe* output){ .sequence = data->data.last_seq++, .options = 0, .universe = htobe16(data->uni), - .flags = htobe16(0x7000 | 0x0205), + .flags = htobe16(0x7000 | 0x020b), .vector = DMP_SET_PROPERTY, .format = 0xA1, .startcode_offset = 0, diff --git a/core/plugin.c b/core/plugin.c index cd85059..01c3342 100644 --- a/core/plugin.c +++ b/core/plugin.c @@ -102,7 +102,8 @@ int plugins_load(char* path){ LOG("Failed to allocate memory"); return -1; } - snprintf(search_expression, strlen(path) + strlen("*.dll"), "%s*.dll", path); + snprintf(search_expression, strlen(path) + strlen("*.dll") + 1, "%s*.dll", path); + DBGPF("FindFirstFile search expression: %s", search_expression); WIN32_FIND_DATA result; HANDLE hSearch = FindFirstFile(search_expression, &result); |