aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-07-04 01:10:21 +0200
committercbdev <cb@cbcdn.com>2017-07-04 01:10:21 +0200
commit0540f655acb0a6c754547761191c4752c32a1364 (patch)
treedf3784f02fce3fba35c176edc15fc14668e4f7fe
parent8f32e0e3c7c2687a0a730445c56f4b0c69cb7fd1 (diff)
downloadmidimonster-0540f655acb0a6c754547761191c4752c32a1364.tar.gz
midimonster-0540f655acb0a6c754547761191c4752c32a1364.tar.bz2
midimonster-0540f655acb0a6c754547761191c4752c32a1364.zip
Clarify MIDI error messages
-rw-r--r--midi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/midi.c b/midi.c
index 6546ecd..d856ced 100644
--- a/midi.c
+++ b/midi.c
@@ -93,7 +93,7 @@ static int midi_configure_instance(instance* instance, char* option, char* value
if(!strcmp(option, "read")){
//connect input device
if(data->read){
- fprintf(stderr, "Port already connected to an input device\n");
+ fprintf(stderr, "MIDI port already connected to an input device\n");
return 1;
}
data->read = strdup(value);
@@ -102,7 +102,7 @@ static int midi_configure_instance(instance* instance, char* option, char* value
else if(!strcmp(option, "write")){
//connect output device
if(data->write){
- fprintf(stderr, "Port already connected to an output device\n");
+ fprintf(stderr, "MIDI port already connected to an output device\n");
return 1;
}
data->write = strdup(value);
@@ -141,7 +141,7 @@ static channel* midi_channel(instance* instance, char* spec){
//FIXME test this
if(ident.fields.channel > 16){
- fprintf(stderr, "Channel out of range in channel spec %s\n", spec);
+ fprintf(stderr, "MIDI channel out of range in channel spec %s\n", spec);
return NULL;
}
@@ -292,7 +292,7 @@ static int midi_start(){
snd_seq_connect_to(sequencer, data->port, addr.client, addr.port);
}
else{
- fprintf(stderr, "Failed to get destination device address: %s\n", data->write);
+ fprintf(stderr, "Failed to get destination MIDI device address: %s\n", data->write);
}
free(data->write);
data->write = NULL;
@@ -304,7 +304,7 @@ static int midi_start(){
snd_seq_connect_from(sequencer, data->port, addr.client, addr.port);
}
else{
- fprintf(stderr, "Failed to get source device address: %s\n", data->read);
+ fprintf(stderr, "Failed to get source MIDI device address: %s\n", data->read);
}
free(data->read);
data->read = NULL;