mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Merge 9b0ba8b704 into 7422cbfbcb
This commit is contained in:
commit
2112787862
2 changed files with 8 additions and 0 deletions
|
|
@ -98,6 +98,11 @@ void MidiOutput::sendBlockOfMessages (const MidiBuffer& buffer,
|
|||
notify();
|
||||
}
|
||||
|
||||
bool MidiOutput::hasPendingMessages() const
|
||||
{
|
||||
return firstMessage != nullptr;
|
||||
}
|
||||
|
||||
void MidiOutput::clearAllPendingMessages()
|
||||
{
|
||||
const ScopedLock sl (lock);
|
||||
|
|
|
|||
|
|
@ -420,6 +420,9 @@ public:
|
|||
void sendBlockOfMessages (const MidiBuffer& buffer,
|
||||
double millisecondCounterToStartAt,
|
||||
double samplesPerSecondForBuffer);
|
||||
|
||||
/** Returns true if there are pending midi messages */
|
||||
bool hasPendingMessages() const;
|
||||
|
||||
/** Gets rid of any midi messages that had been added by sendBlockOfMessages(). */
|
||||
void clearAllPendingMessages();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue