Permalink
Browse files

More efficient MidiOut

  • Loading branch information...
giuliomoro committed Oct 2, 2017
1 parent 37c7910 commit b27bbd866502bbad81f991a9b2bb4e12b9bbfdba
Showing with 4 additions and 1 deletion.
  1. +4 −1 core/Midi.cpp
View
@@ -218,7 +218,10 @@ void Midi::writeOutputLoop(void* obj){
// write the received message to the output
ret = snd_rawmidi_write(that->alsaOut, data, ret);
// make sure it is written
snd_rawmidi_drain(that->alsaOut);
// NOTE:using _drain actually increases the latency
// under heavy load, so we leave it out and
// leave it to the driver to figure out.
//snd_rawmidi_drain(that->alsaOut);
}
}
}

0 comments on commit b27bbd8

Please sign in to comment.