pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c
ryoon 4453d92d00 Bump PKGREVISION
Use /dev/audio instead of /dev/sound under NetBSD.
This change fixes unstable audio output.
O.k. by wiz@.
2014-06-25 15:26:40 +00:00

18 lines
522 B
C

$NetBSD: patch-src_modules_oss_module-oss.c,v 1.2 2014/06/25 15:26:40 ryoon Exp $
Set proper sound device default on NetBSD.
--- src/modules/oss/module-oss.c.orig 2014-01-23 18:57:55.000000000 +0000
+++ src/modules/oss/module-oss.c
@@ -98,7 +98,11 @@ PA_MODULE_USAGE(
PA_MODULE_DEPRECATED("Please use module-alsa-card instead of module-oss!");
#endif
+#if defined(__NetBSD__)
+#define DEFAULT_DEVICE "/dev/audio"
+#else /* Linux */
#define DEFAULT_DEVICE "/dev/dsp"
+#endif
struct userdata {
pa_core *core;