mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
win32 midi - handling for drivers returning a MIDIERR_NOTREADY error.
This commit is contained in:
parent
a2b67cbfae
commit
d20441ad62
1 changed files with 7 additions and 1 deletions
|
|
@ -478,6 +478,12 @@ void MidiOutput::sendMessageNow (const MidiMessage& message)
|
|||
}
|
||||
else
|
||||
{
|
||||
midiOutShortMsg (handle->handle, *(unsigned int*) message.getRawData());
|
||||
for (int i = 0; i < 50; ++i)
|
||||
{
|
||||
if (midiOutShortMsg (handle->handle, *(unsigned int*) message.getRawData()) != MIDIERR_NOTREADY)
|
||||
break;
|
||||
|
||||
Sleep (1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue