Added SND_RAWMIDI_SYNC flag.

This commit is contained in:
Jaroslav Kysela 2001-04-24 19:27:45 +00:00
parent 1498d2ea66
commit 7025482a40
2 changed files with 6 additions and 0 deletions

View file

@ -208,6 +208,10 @@ int snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
if (mode & SND_RAWMIDI_NONBLOCK) {
fmode |= O_NONBLOCK;
}
if (mode & SND_RAWMIDI_SYNC) {
fmode |= O_SYNC;
}
assert(!(mode & ~(SND_RAWMIDI_APPEND|SND_RAWMIDI_NONBLOCK)));