aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/winmidi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/winmidi.c b/backends/winmidi.c
index 0722ca2..c2aee2f 100644
--- a/backends/winmidi.c
+++ b/backends/winmidi.c
@@ -263,7 +263,7 @@ static int winmidi_handle(size_t num, managed_fd* fds){
backend_config.event[u].inst->name,
backend_config.event[u].channel.fields.channel,
winmidi_type_name(backend_config.event[u].channel.fields.type),
- backend_config.event[u].value);
+ backend_config.event[u].value.normalised);
}
else{
LOGPF("Incoming data on channel %s.ch%d.%s%d, value %f",
@@ -271,7 +271,7 @@ static int winmidi_handle(size_t num, managed_fd* fds){
backend_config.event[u].channel.fields.channel,
winmidi_type_name(backend_config.event[u].channel.fields.type),
backend_config.event[u].channel.fields.control,
- backend_config.event[u].value);
+ backend_config.event[u].value.normalised);
}
}
chan = mm_channel(backend_config.event[u].inst, backend_config.event[u].channel.label, 0);
@@ -396,7 +396,7 @@ static int winmidi_match_input(char* prefix){
for(n = 0; n < inputs; n++){
midiInGetDevCaps(n, &input_caps, sizeof(MIDIINCAPS));
if(!prefix){
- printf("\tID %d: %s", n, input_caps.szPname);
+ LOGPF("\tID %d: %s", n, input_caps.szPname);
}
else if(!strncmp(input_caps.szPname, prefix, strlen(prefix))){
LOGPF("Selected input device %s (ID %" PRIsize_t ") for name %s", input_caps.szPname, n, prefix);
@@ -429,7 +429,7 @@ static int winmidi_match_output(char* prefix){
for(n = 0; n < outputs; n++){
midiOutGetDevCaps(n, &output_caps, sizeof(MIDIOUTCAPS));
if(!prefix){
- printf("\tID %d: %s", n, output_caps.szPname);
+ LOGPF("\tID %d: %s", n, output_caps.szPname);
}
else if(!strncmp(output_caps.szPname, prefix, strlen(prefix))){
LOGPF("Selected output device %s (ID %" PRIsize_t " for name %s", output_caps.szPname, n, prefix);