View | Details | Raw Unified | Return to bug 229853 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-2 / +3 lines)
Lines 4-10 Link Here
4
PORTNAME=	audacity
4
PORTNAME=	audacity
5
PORTVERSION=	2.2.2
5
PORTVERSION=	2.2.2
6
DISTVERSIONPREFIX=	Audacity-
6
DISTVERSIONPREFIX=	Audacity-
7
PORTREVISION=	1
7
PORTREVISION=	2
8
CATEGORIES=	audio
8
CATEGORIES=	audio
9
9
10
MAINTAINER=	xxjack12xx@gmail.com
10
MAINTAINER=	xxjack12xx@gmail.com
Lines 21-26 Link Here
21
		cmake:devel/cmake
21
		cmake:devel/cmake
22
LIB_DEPENDS=	libasound.so:audio/alsa-lib \
22
LIB_DEPENDS=	libasound.so:audio/alsa-lib \
23
		libexpat.so:textproc/expat2 \
23
		libexpat.so:textproc/expat2 \
24
		libportaudio.so:audio/portaudio \
24
		libsoxr.so:audio/libsoxr \
25
		libsoxr.so:audio/libsoxr \
25
		libsndfile.so:audio/libsndfile
26
		libsndfile.so:audio/libsndfile
26
27
Lines 69-75 Link Here
69
			--with-libsndfile=system \
70
			--with-libsndfile=system \
70
			--with-libsoxr=system \
71
			--with-libsoxr=system \
71
			--with-midi \
72
			--with-midi \
72
			--with-portaudio \
73
			--with-portaudio=system \
73
			--with-portmixer=yes \
74
			--with-portmixer=yes \
74
			--with-widgetextra
75
			--with-widgetextra
75
76
(-)files/patch-src_AudioIO.cpp (-3 / +26 lines)
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

Return to bug 229853