aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-01-06 02:53:36 +0100
committercbdev <cb@cbcdn.com>2020-01-06 02:53:36 +0100
commitd79adcabbfee009c65a6664ca245e17ba6da83bd (patch)
tree254fac324092ec815201adc4bfe14de7cfdcf34b /backends
parente08b473d0eeb467ad358ba5314157753b4f37c18 (diff)
downloadmidimonster-d79adcabbfee009c65a6664ca245e17ba6da83bd.tar.gz
midimonster-d79adcabbfee009c65a6664ca245e17ba6da83bd.tar.bz2
midimonster-d79adcabbfee009c65a6664ca245e17ba6da83bd.zip
Fix winmidi detect value output
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);