summaryrefslogtreecommitdiff
path: root/mail/thunderbird17/patches/patch-au
blob: d2c0abbb25884144c24db66088f686bd30e4c702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-au,v 1.1 2013/11/13 13:27:45 ryoon Exp $

- Fix device name on NetBSD
- SOUND_VERSION just isn't a reliable way to detect features supported by
  particular OSS implementation.

--- mozilla/media/libsydneyaudio/src/sydney_audio_oss.c.orig	2012-08-25 00:31:24.000000000 +0000
+++ mozilla/media/libsydneyaudio/src/sydney_audio_oss.c
@@ -23,7 +23,7 @@
 // support only versions newer than 3.6.1
 #define SUPP_OSS_VERSION OSS_VERSION(3,0,1)
 
-#if (SOUND_VERSION < SUPP_OSS_VERSION)
+#if 0 // (SOUND_VERSION < SUPP_OSS_VERSION)
 #error Unsupported OSS Version
 #else
 
@@ -173,7 +173,12 @@ sa_stream_create_pcm(
     return SA_ERROR_SYSTEM;
   }
 
+#if defined(__NetBSD__)
+  /* XXX should use DEVOSSAUDIO provided by pkgsrc. */
+  s->output_unit  = "/dev/audio";
+#else
   s->output_unit  = "/dev/dsp";
+#endif
   s->output_fd    = -1;
   s->thread_id    = 0;
   s->playing      = 0;