Define Solaris specific AUDIO_ENCODING_SLINEAR and AUDIO_ENCODING_ULINEAR.

A patch from Jonathan Perkin via PR 18791
This commit is contained in:
salo 2002-11-19 13:04:38 +00:00
parent ce75b048b4
commit 7079622fc8
2 changed files with 15 additions and 6 deletions

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.6 2002/08/31 03:47:53 wiz Exp $
$NetBSD: distinfo,v 1.7 2002/11/19 13:04:38 salo Exp $
SHA1 (libmikmod-3.1.10.tar.gz) = 8d4daec66b17e556e8977cb077c4186111808e0d
Size (libmikmod-3.1.10.tar.gz) = 528929 bytes
SHA1 (patch-aa) = bfff6a9a77238e159e039bfa7d3f590bce8c9c9c
SHA1 (patch-ab) = afda9a7d29e70e42c037163ac5b2d2742c77daab
SHA1 (patch-ac) = 97554f00e4a4823e7a90f742679044fb8f887167
SHA1 (patch-ad) = 6b5df049ef7ea3c8a527de59361a17a5b64829d6
SHA1 (patch-ad) = f2fc607efccd4d883ce6b642ab644f0e7bf747f6

View file

@ -1,8 +1,8 @@
$NetBSD: patch-ad,v 1.6 2002/08/25 19:21:52 jlam Exp $
$NetBSD: patch-ad,v 1.7 2002/11/19 13:04:38 salo Exp $
--- drivers/drv_sun.c.orig Sun Jan 13 00:58:57 2002
+++ drivers/drv_sun.c Thu Jul 11 02:12:04 2002
@@ -79,9 +79,9 @@
--- drivers/drv_sun.c.orig Sun Jan 13 01:58:57 2002
+++ drivers/drv_sun.c Tue Nov 19 05:22:18 2002
@@ -79,12 +79,18 @@
#endif
/* Sound device to open */
@ -14,3 +14,12 @@ $NetBSD: patch-ad,v 1.6 2002/08/25 19:21:52 jlam Exp $
#define SOUNDDEVICE "/dev/audio"
#endif
+/* Solaris */
+#ifdef SOLARIS
+#define AUDIO_ENCODING_SLINEAR AUDIO_ENCODING_LINEAR
+#define AUDIO_ENCODING_ULINEAR AUDIO_ENCODING_LINEAR8
+#endif
+
/* Compatibility defines, for old *BSD or SunOS systems */
#ifndef AUDIO_ENCODING_PCM16
#define AUDIO_ENCODING_PCM16 AUDIO_ENCODING_LINEAR