opnsense-ports/audio/audacity/files/patch-src_MIDIPlay.cpp
Franco Fichtner b0f8f3516b */*: sync with upstream
Taken from: FreeBSD
2021-11-12 10:50:49 +01:00

11 lines
473 B
C++

--- src/MIDIPlay.cpp.orig 2021-10-31 02:53:52 UTC
+++ src/MIDIPlay.cpp
@@ -490,7 +490,7 @@ static double SystemTime(bool usingAlsa)
if (usingAlsa) {
struct timespec now;
// CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time
- clock_gettime(CLOCK_MONOTONIC_RAW, &now);
+ clock_gettime(CLOCK_REALTIME, &now);
//return now.tv_sec + now.tv_nsec * 0.000000001;
return (now.tv_sec + now.tv_nsec * 0.000000001) - streamStartTime;
}