diff options
author | Jack <xxjack12xx@gmail.com> | 2021-11-10 08:18:57 +0100 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-11-11 15:17:10 +0100 |
commit | 6bf0135b415ee56a9e84ac82f80a7eb438fe497a (patch) | |
tree | d19deaa6bb68fe89f1b0dc1a0db4aa1eb6606aa3 /audio/audacity/files/patch-src_AudioIO.cpp | |
parent | textproc/py-elementpath: Update to 2.4.0 (diff) |
audio/audacity: Update to 3.1.0
ChangeLog: https://www.audacityteam.org/audacity-3-1-is-out-now/
PR: 259565
Reported by: xxjack12xx@gmail.com (maintainer)
Diffstat (limited to 'audio/audacity/files/patch-src_AudioIO.cpp')
-rw-r--r-- | audio/audacity/files/patch-src_AudioIO.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/audio/audacity/files/patch-src_AudioIO.cpp b/audio/audacity/files/patch-src_AudioIO.cpp deleted file mode 100644 index 7534cdee3a98..000000000000 --- a/audio/audacity/files/patch-src_AudioIO.cpp +++ /dev/null @@ -1,34 +0,0 @@ ---- src/AudioIO.cpp.orig 2020-06-19 15:16:47 UTC -+++ src/AudioIO.cpp -@@ -490,7 +490,6 @@ time warp info and AudioIOListener and whether the pla - #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 - -@@ -814,13 +813,22 @@ struct AudioIoCallback::ScrubState (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__ - 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; - } |