1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-31 08:58:43 +01:00

Bug1714, partial fix for silent, freezing Midi play on ALSA...

Don't assume Pa_GetStreamTimePaStreamCallbackTimeInfo origin is time-of-day.

portaudio.h says you should not, and in fact it was not.

The report is that this gets us some play, but there are still freezes.
This commit is contained in:
Paul Licameli
2017-08-10 19:46:58 -04:00
parent 46400af4a4
commit f2ee945da0
2 changed files with 10 additions and 6 deletions

View File

@@ -530,8 +530,10 @@ private:
// These fields are used to synchronize MIDI with audio:
/// PortAudio's currentTime
volatile double mAudioCallbackOutputCurrentTime;
/// PortAudio's outTime
volatile double mAudioCallbackOutputTime;
volatile double mAudioCallbackOutputDacTime;
/// Number of frames output, including pauses
volatile long mNumFrames;
/// How many frames of zeros were output due to pauses?