Lines 1-6
Link Here
|
1 |
--- src/AudioIO.cpp.orig 2018-02-22 14:12:03.835431000 -0800 |
1 |
--- src/AudioIO.cpp.orig 2018-07-17 20:25:01 UTC |
2 |
+++ src/AudioIO.cpp 2018-02-22 14:01:49.487127000 -0800 |
2 |
+++ src/AudioIO.cpp |
3 |
@@ -985,7 +985,7 @@ |
3 |
@@ -465,7 +465,6 @@ TimeTrack and AudioIOListener and whether the playback |
|
|
4 |
#define ROUND(x) (int) ((x)+0.5) |
5 |
//#include <string.h> |
6 |
#include "../lib-src/portmidi/pm_common/portmidi.h" |
7 |
- #include "../lib-src/portaudio-v19/src/common/pa_util.h" |
8 |
#include "NoteTrack.h" |
9 |
#endif |
10 |
|
11 |
@@ -979,13 +978,22 @@ struct AudioIO::ScrubQueue (private) |
12 |
// return the system time as a double |
13 |
static double streamStartTime = 0; // bias system time to small number |
14 |
|
15 |
+// PaUtil_GetTime is an internal PortAudio function. Unfortunately |
16 |
+// it's used twice in AudioIO.cpp. It's a simple function so just |
17 |
+// provide the implementation here. |
18 |
+static double PaUtil_GetTime(void) { |
19 |
+ struct timespec tp; |
20 |
+ clock_gettime(CLOCK_REALTIME, &tp); |
21 |
+ return (double)(tp.tv_sec + tp.tv_nsec * 1e-9); |
22 |
+} |
23 |
+ |
24 |
static double SystemTime(bool usingAlsa) |
25 |
{ |
26 |
#ifdef __WXGTK__ |
4 |
if (usingAlsa) { |
27 |
if (usingAlsa) { |
5 |
struct timespec now; |
28 |
struct timespec now; |
6 |
// CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time |
29 |
// CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time |