tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkgsrc/audio/pulseaudio stability improvement
Hi,
pkgsrc/audio/pulseaudio under NetBSD uses OSS backend (dev/sound).
But I have found using /dev/sound causes bad audio output.
Using /dev/audio improves quality of audio output.
Can I commit the following patch during freeze?
Thank you.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/pulseaudio/Makefile,v
retrieving revision 1.90
diff -u -r1.90 Makefile
--- Makefile 18 Jun 2014 11:12:05 -0000 1.90
+++ Makefile 18 Jun 2014 16:35:31 -0000
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.90 2014/06/18 11:12:05 jperkin Exp $
DISTNAME= pulseaudio-5.0
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
EXTRACT_SUFX= .tar.xz
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/audio/pulseaudio/distinfo,v
retrieving revision 1.43
diff -u -r1.43 distinfo
--- distinfo 16 Jun 2014 13:26:25 -0000 1.43
+++ distinfo 18 Jun 2014 16:35:31 -0000
@@ -9,8 +9,8 @@
SHA1 (patch-src_Makefile.in) = 21daf6069ae067dd235de6d43a013e4e70bbca78
SHA1 (patch-src_daemon_caps.c) = e819c26cd3d91d93ae5877725ed6a1b59183d89a
SHA1 (patch-src_daemon_main.c) = e87f764d18345056210427bea52bf27f3f2999b6
-SHA1 (patch-src_modules_module-detect.c) =
1679519bc8a46a85790babe9c729850d10b9da6c
-SHA1 (patch-src_modules_oss_module-oss.c) =
43a0c2eeb5a9a37c7a231a531caa3658fe8d49b0
+SHA1 (patch-src_modules_module-detect.c) =
25c803ee2d5addf9dbf522d81bd422dc201d4550
+SHA1 (patch-src_modules_oss_module-oss.c) =
399ac178ae832619253ce8dd985edbed23db86e7
SHA1 (patch-src_pulsecore_sample-util.h) =
b6bd83cfdc1c337453d9a728f07205a2cf0af831
SHA1 (patch-src_pulsecore_svolume__mmx.c) =
b500530bcc9792b97050c7fa6e47639ac8e261a2
SHA1 (patch-src_pulsecore_svolume__sse.c) =
07da6faa8529d7308d8a6a9f11958ef9faf46409
Index: patches/patch-src_modules_module-detect.c
===================================================================
RCS file:
/cvsroot/pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c,v
retrieving revision 1.1
diff -u -r1.1 patch-src_modules_module-detect.c
--- patches/patch-src_modules_module-detect.c 9 Jun 2014 13:08:19 -0000
1.1
+++ patches/patch-src_modules_module-detect.c 18 Jun 2014 16:35:31 -0000
@@ -10,11 +10,11 @@
+#if defined(__NetBSD__)
+/*
-+ * Assume primary sound device is used (/dev/sound).
++ * Assume primary sound device is used (/dev/audio).
+ * And only primary sound device will be used (n=1).
+ */
+ char args[64];
-+ pa_snprintf(args, sizeof(args), "device=/dev/sound");
++ pa_snprintf(args, sizeof(args), "device=/dev/audio");
+ if (!pa_module_load(c, "module-oss", args))
+ exit(1);
+ n = 1;
Index: patches/patch-src_modules_oss_module-oss.c
===================================================================
RCS file:
/cvsroot/pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c,v
retrieving revision 1.1
diff -u -r1.1 patch-src_modules_oss_module-oss.c
--- patches/patch-src_modules_oss_module-oss.c 9 Jun 2014 13:08:19 -0000
1.1
+++ patches/patch-src_modules_oss_module-oss.c 18 Jun 2014 16:35:31 -0000
@@ -9,7 +9,7 @@
#endif
+#if defined(__NetBSD__)
-+#define DEFAULT_DEVICE "/dev/sound"
++#define DEFAULT_DEVICE "/dev/audio"
+#else /* Linux */
#define DEFAULT_DEVICE "/dev/dsp"
+#endif
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index