summaryrefslogtreecommitdiffstats
path: root/audio/libjackasyn/files/patch-libjackoss.h
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-05-08 16:05:17 +0000
committerpav <pav@FreeBSD.org>2006-05-08 16:05:17 +0000
commit1d6864e4d7f271ced741d2c8a6cdd5709ecebc8b (patch)
treed80a21f1cd2b0790ac29e3d548cddae8b3bd478b /audio/libjackasyn/files/patch-libjackoss.h
parentdb37f12717b62c2adcdb23d226454d509d6800c2 (diff)
downloadFreeBSD-ports-1d6864e4d7f271ced741d2c8a6cdd5709ecebc8b.zip
FreeBSD-ports-1d6864e4d7f271ced741d2c8a6cdd5709ecebc8b.tar.gz
libjackasyn is a library that allows you to use programs written for the OSS
sound API with the JACK audio server (jackit.sf.net). libjackasyn is a library that can be used for two purposes. First it can be loaded via the LD_PRELOAD variable, turning OSS applications automatically into JACK-aware applications. Second, it can be used to link against the program during build time, making it trivial to turn an OSS aware sound application into a JACK aware sound application in a short time. libjackasyn got its name from the asynchronous manner in which it communicates with the JACK server, which means by using libjackasyn you will introduce an additional delay exactly the size of one JACK audiobuffer (1024 samples or 44 ms with the JACK default settings). This delay can be reduced by reducing the JACK buffersize. It should not matter for sound generating applications, but it might introduce phasing effects when doing sound processing. WWW: http://gige.xdv.org/libjackasyn/ PR: ports/94290 Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
Diffstat (limited to 'audio/libjackasyn/files/patch-libjackoss.h')
-rw-r--r--audio/libjackasyn/files/patch-libjackoss.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/audio/libjackasyn/files/patch-libjackoss.h b/audio/libjackasyn/files/patch-libjackoss.h
new file mode 100644
index 0000000..c5e23fb
--- /dev/null
+++ b/audio/libjackasyn/files/patch-libjackoss.h
@@ -0,0 +1,23 @@
+--- libjackoss.h Mon Mar 6 07:14:48 2006
++++ libjackoss.h Thu Mar 23 22:22:42 2006
+@@ -2,6 +2,11 @@
+ #define __LIBJACKOSS_H__
+ #include <sys/types.h>
+ #include <sys/poll.h>
++#include <sys/param.h>
++
++#if __FreeBSD_version <= 492100
++typedef unsigned int nfds_t;
++#endif
+
+ #ifdef __cplusplus
+ extern "C" {
+@@ -15,7 +20,7 @@
+ int jackoss_select(int n, fd_set *readfds,
+ fd_set *writefds,
+ fd_set *exceptfds, struct timeval *timeout);
+- int jackoss_poll (struct pollfd *__fds, nfds_t __nfds, int __timeout);
++ int jackoss_poll(struct pollfd *__fds, nfds_t __nfds, int __timeout);
+ /* these are mainly need for sox */
+
+ FILE * jackoss_fopen (const char *pathname, const char *mode);
OpenPOWER on IntegriCloud