mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Roger Dannenberg's fix for MIDI notes-off, applied to Linux only...
... but then, always: It's a problem in portmidi which uses ALSA always, no matter what the chosen portaudio host is.
This commit is contained in:
@@ -460,7 +460,7 @@ private:
|
||||
void GetNextEvent();
|
||||
double AudioTime() { return mT0 + mNumFrames / mRate; }
|
||||
double PauseTime();
|
||||
void AllNotesOff();
|
||||
void AllNotesOff(bool looping = false);
|
||||
#endif
|
||||
|
||||
/** \brief Get the number of audio samples free in all of the playback
|
||||
@@ -573,6 +573,10 @@ private:
|
||||
/// Used by Midi process to record that pause has begun,
|
||||
/// so that AllNotesOff() is only delivered once
|
||||
volatile bool mMidiPaused;
|
||||
/// The largest timestamp written so far, used to delay
|
||||
/// stream closing until last message has been delivered
|
||||
PmTimestamp mMaxMidiTimestamp;
|
||||
|
||||
|
||||
Alg_seq_ptr mSeq;
|
||||
std::unique_ptr<Alg_iterator> mIterator;
|
||||
|
||||
Reference in New Issue
Block a user