34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
Source: https://svnweb.freebsd.org/ports/head/audio/audacity/files/patch-src_AudioIO.cpp?view=markup
|
|
Upstream: No
|
|
Reason: For system portaudio
|
|
|
|
|
|
diff --git src/AudioIO.cpp src/AudioIO.cpp
|
|
index 03972d700..51913ce9f 100644
|
|
--- src/AudioIO.cpp
|
|
+++ src/AudioIO.cpp
|
|
@@ -467,7 +467,6 @@ TimeTrack and AudioIOListener and whether the playback is looped.
|
|
#define ROUND(x) (int) ((x)+0.5)
|
|
//#include <string.h>
|
|
#include "../lib-src/portmidi/pm_common/portmidi.h"
|
|
- #include "../lib-src/portaudio-v19/src/common/pa_util.h"
|
|
#include "NoteTrack.h"
|
|
#endif
|
|
|
|
@@ -787,6 +786,15 @@ private:
|
|
// return the system time as a double
|
|
static double streamStartTime = 0; // bias system time to small number
|
|
|
|
+// PaUtil_GetTime is an internal PortAudio function. Unfortunately
|
|
+// it's used twice in AudioIO.cpp. It's a simple function so just
|
|
+// provide the implementation here.
|
|
+static double PaUtil_GetTime(void) {
|
|
+ struct timespec tp;
|
|
+ clock_gettime(CLOCK_REALTIME, &tp);
|
|
+ return (double)(tp.tv_sec + tp.tv_nsec * 1e-9);
|
|
+}
|
|
+
|
|
static double SystemTime(bool usingAlsa)
|
|
{
|
|
#ifdef __WXGTK__
|