blob: 4c6b68156c209dbe8148f56f57ee775a192b03ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- 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;
}
|