We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c9bb8 commit f48425fCopy full SHA for f48425f
1 file changed
Source/Utility/MidiDeviceManager.h
@@ -287,7 +287,12 @@ class MidiDeviceManager final : public ChangeListener
287
288
if (!outputPort.buffer.isEmpty()) {
289
for (auto* device : outputPort.devices) {
290
- device->sendBlockOfMessages(outputPort.buffer, Time::getMillisecondCounterHiRes(), currentSampleRate);
+ if (device->isBackgroundThreadRunning()) {
291
+ device->sendBlockOfMessages (outputPort.buffer, Time::getMillisecondCounterHiRes(), currentSampleRate);
292
+ }
293
+ else {
294
+ device->sendBlockOfMessagesNow (outputPort.buffer);
295
296
}
297
298
0 commit comments