1
0
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:
Paul Licameli
2017-09-23 16:53:18 -04:00
parent a971dd5bb4
commit 857a7ca737
2 changed files with 57 additions and 10 deletions

View File

@@ -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;