mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added assertion to MidiMessageCollector
This commit is contained in:
parent
a1c7379b2d
commit
dbd83d85f7
2 changed files with 3 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ void MidiMessageCollector::removeNextBlockOfMessages (MidiBuffer& destBuffer,
|
|||
{
|
||||
// you need to call reset() to set the correct sample rate before using this object
|
||||
jassert (sampleRate != 44100.0001);
|
||||
jassert (numSamples > 0);
|
||||
|
||||
const double timeNow = Time::getMillisecondCounterHiRes();
|
||||
const double msElapsed = timeNow - lastCallbackTime;
|
||||
|
|
|
|||
|
|
@ -79,6 +79,8 @@ public:
|
|||
|
||||
This method is fully thread-safe when overlapping calls are made with
|
||||
addMessageToQueue().
|
||||
|
||||
Precondition: numSamples must be greater than 0.
|
||||
*/
|
||||
void removeNextBlockOfMessages (MidiBuffer& destBuffer, int numSamples);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue