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();
|
notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MidiOutput::hasPendingMessages() const
|
||||||
|
{
|
||||||
|
return firstMessage != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void MidiOutput::clearAllPendingMessages()
|
void MidiOutput::clearAllPendingMessages()
|
||||||
{
|
{
|
||||||
const ScopedLock sl (lock);
|
const ScopedLock sl (lock);
|
||||||
|
|
|
||||||
|
|
@ -420,6 +420,9 @@ public:
|
||||||
void sendBlockOfMessages (const MidiBuffer& buffer,
|
void sendBlockOfMessages (const MidiBuffer& buffer,
|
||||||
double millisecondCounterToStartAt,
|
double millisecondCounterToStartAt,
|
||||||
double samplesPerSecondForBuffer);
|
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(). */
|
/** Gets rid of any midi messages that had been added by sendBlockOfMessages(). */
|
||||||
void clearAllPendingMessages();
|
void clearAllPendingMessages();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue