fixed open - accepts SND_RAWMIDI_SYNC flag.

This commit is contained in:
Takashi Iwai 2002-04-24 08:50:44 +00:00
parent 9fd32231dd
commit a577b0d7c1

View file

@ -218,7 +218,7 @@ int snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
fmode |= O_SYNC; fmode |= O_SYNC;
} }
assert(!(mode & ~(SND_RAWMIDI_APPEND|SND_RAWMIDI_NONBLOCK))); assert(!(mode & ~(SND_RAWMIDI_APPEND|SND_RAWMIDI_NONBLOCK|SND_RAWMIDI_SYNC)));
if ((fd = open(filename, fmode)) < 0) { if ((fd = open(filename, fmode)) < 0) {
snd_card_load(card); snd_card_load(card);