Indicate that the MIDI error message only affects programs that need MIDI.

This commit is contained in:
Chris Morgan 2000-10-13 20:21:27 +00:00 committed by Alexandre Julliard
parent 411faaee96
commit 3b37e7ae6a
1 changed files with 4 additions and 3 deletions

View File

@ -383,14 +383,15 @@ static int midiOpenSeq(void)
if (midiSeqFD == -1) {
if (midi_warn)
{
MESSAGE("Can't open MIDI device '%s' ! (%s)%s\n",
MESSAGE("Can't open MIDI device '%s' ! (%s). If your
program needs this (probably not), %s\n",
MIDI_SEQ, strerror(errno),
errno == ENOENT ?
": create it ! (\"man MAKEDEV\" ?)" :
errno == ENODEV ?
": Load MIDI sequencer kernel driver !" :
": load MIDI sequencer kernel driver !" :
errno == EACCES ?
": Grant access ! (\"man chmod\")" : ""
": grant access ! (\"man chmod\")" : ""
);
}
midi_warn = 0;