Skip to content

Commit

Permalink
MIDI: Fixed MidiInputDeviceNode to allow sending of messages straight…
Browse files Browse the repository at this point in the history
… after construction
  • Loading branch information
drowaudio committed Sep 11, 2023
1 parent 5459c60 commit e84d2e6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -44,7 +44,7 @@ class MidiInputDeviceNode final : public tracktion::graph::Node,
MidiMessageArray liveRecordedMessages;
int numLiveMessagesToPlay = 0; // the index of the first message that's been recorded in the current loop
juce::CriticalSection liveInputLock;
unsigned int lastReadTime = 0, maxExpectedMsPerBuffer = 0;
unsigned int lastReadTime = juce::Time::getApproximateMillisecondCounter(), maxExpectedMsPerBuffer = 0;
double sampleRate = 44100.0, lastPlayheadTime = 0;

//==============================================================================
Expand Down

0 comments on commit e84d2e6

Please sign in to comment.