audacity: use system portaudio

This commit is contained in:
Christian Buschau 2019-01-21 01:48:02 +01:00 committed by maxice8
parent ca3ca562fc
commit af55b45830
2 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,33 @@
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__

View File

@ -1,7 +1,7 @@
# Template file for 'audacity'
pkgname=audacity
version=2.3.0
revision=1
revision=2
wrksrc="${pkgname}-Audacity-${version}"
build_style=gnu-configure
configure_args="--with-ffmpeg=system --with-libsndfile=system --with-expat=system
@ -10,7 +10,7 @@ hostmakedepends="pkg-config cmake libtool m4"
makedepends="jack-devel wxWidgets-gtk3-devel gtk+3-devel
libmad-devel soundtouch-devel libsoxr-devel
vamp-plugin-sdk-devel lame-devel libid3tag-devel libflac-devel
ffmpeg-devel twolame-devel"
ffmpeg-devel twolame-devel portaudio-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Graphical cross-platform audio editor"
maintainer="Leah Neukirchen <leah@vuxu.org>"