FreeBSD Bugzilla – Attachment 195260 Details for
Bug 229853
audio/audacity: Unbundle portaudio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
portaudio with less patching
portaudio.txt (text/plain), 2.11 KB, created by
Jack
on 2018-07-18 21:12:23 UTC
(
hide
)
Description:
portaudio with less patching
Filename:
MIME Type:
Creator:
Jack
Created:
2018-07-18 21:12:23 UTC
Size:
2.11 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 474901) >+++ Makefile (working copy) >@@ -4,7 +4,7 @@ > PORTNAME= audacity > PORTVERSION= 2.2.2 > DISTVERSIONPREFIX= Audacity- >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= audio > > MAINTAINER= xxjack12xx@gmail.com >@@ -21,6 +21,7 @@ > cmake:devel/cmake > LIB_DEPENDS= libasound.so:audio/alsa-lib \ > libexpat.so:textproc/expat2 \ >+ libportaudio.so:audio/portaudio \ > libsoxr.so:audio/libsoxr \ > libsndfile.so:audio/libsndfile > >@@ -69,7 +70,7 @@ > --with-libsndfile=system \ > --with-libsoxr=system \ > --with-midi \ >- --with-portaudio \ >+ --with-portaudio=system \ > --with-portmixer=yes \ > --with-widgetextra > >Index: files/patch-src_AudioIO.cpp >=================================================================== >--- files/patch-src_AudioIO.cpp (revision 474901) >+++ files/patch-src_AudioIO.cpp (working copy) >@@ -1,6 +1,29 @@ >---- src/AudioIO.cpp.orig 2018-02-22 14:12:03.835431000 -0800 >-+++ src/AudioIO.cpp 2018-02-22 14:01:49.487127000 -0800 >-@@ -985,7 +985,7 @@ >+--- src/AudioIO.cpp.orig 2018-07-17 20:25:01 UTC >++++ src/AudioIO.cpp >+@@ -465,7 +465,6 @@ TimeTrack and AudioIOListener and whether the playback >+ #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 >+ >+@@ -979,13 +978,22 @@ struct AudioIO::ScrubQueue (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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
xxjack12xx
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 229853
:
195226
| 195260