initial import
This commit is contained in:
51
libsndfile/sndio.patch
Normal file
51
libsndfile/sndio.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 78a79da..3892bd3 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -491,7 +491,7 @@ dnl Check for OpenBSD's sndio.
|
||||
SNDIO_LIBS=""
|
||||
HAVE_SNDIO_H=0
|
||||
AS_CASE([$host_os],
|
||||
- [openbsd*], [
|
||||
+ [openbsd*|linux*], [
|
||||
AC_CHECK_HEADERS(sndio.h)
|
||||
AS_IF([test "x$ac_cv_header_sndio_h" = "xyes"], [
|
||||
SNDIO_LIBS="-lsndio"
|
||||
diff --git a/man/sndfile-play.1 b/man/sndfile-play.1
|
||||
index f36d131..3252889 100644
|
||||
--- a/man/sndfile-play.1
|
||||
+++ b/man/sndfile-play.1
|
||||
@@ -14,7 +14,7 @@ output APIs. The following table summarizes which audio API is used where:
|
||||
.Pp
|
||||
.Bl -tag -width MacOSX10XXX -compact
|
||||
.It Linux
|
||||
-ALSA or OSS
|
||||
+ALSA, OSS or sndio
|
||||
.It OpenBSD
|
||||
sndio
|
||||
.It FreeBSD
|
||||
diff --git a/programs/sndfile-play.c b/programs/sndfile-play.c
|
||||
index cd5cc27..be4eaef 100644
|
||||
--- a/programs/sndfile-play.c
|
||||
+++ b/programs/sndfile-play.c
|
||||
@@ -54,6 +54,10 @@
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_SNDIO_H
|
||||
+ #include <sndio.h>
|
||||
+#endif
|
||||
+
|
||||
#if defined (__ANDROID__)
|
||||
|
||||
#elif defined (__linux__) || defined (__FreeBSD_kernel__) || defined (__FreeBSD__)
|
||||
@@ -61,9 +65,6 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/soundcard.h>
|
||||
|
||||
-#elif HAVE_SNDIO_H
|
||||
- #include <sndio.h>
|
||||
-
|
||||
#elif (defined (sun) && defined (unix))
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
Reference in New Issue
Block a user