diff options
Diffstat (limited to 'games/plib/patches/patch-ae')
-rw-r--r-- | games/plib/patches/patch-ae | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/games/plib/patches/patch-ae b/games/plib/patches/patch-ae index 642b4a91424..04e834055d8 100644 --- a/games/plib/patches/patch-ae +++ b/games/plib/patches/patch-ae @@ -1,8 +1,8 @@ -$NetBSD: patch-ae,v 1.3 2007/07/12 19:48:42 drochner Exp $ +$NetBSD: patch-ae,v 1.4 2013/01/06 00:59:47 ryoon Exp $ ---- src/sl/sl.h.orig 2007-03-22 23:38:18.000000000 +0100 +--- src/sl/sl.h.orig Tue Mar 11 02:06:24 2008 +++ src/sl/sl.h -@@ -26,6 +26,7 @@ +@@ -26,12 +26,15 @@ #define __SL_H__ 1 #include <stdio.h> @@ -10,3 +10,30 @@ $NetBSD: patch-ae,v 1.3 2007/07/12 19:48:42 drochner Exp $ #include "slPortability.h" #ifdef SL_USING_OSS_AUDIO + #define SLDSP_DEFAULT_DEVICE "/dev/dsp" + #elif defined(UL_WIN32) + #define SLDSP_DEFAULT_DEVICE "dsp" ++#elif defined(SL_USING_SNDIO) ++#define SLDSP_DEFAULT_DEVICE "default" + #elif defined(UL_BSD) + #define SLDSP_DEFAULT_DEVICE "/dev/audio" + #elif defined(UL_IRIX) +@@ -78,6 +81,9 @@ class slDSP (private) + + #if defined(SL_USING_OSS_AUDIO) + audio_buf_info buff_info ; ++#elif defined(SL_USING_SNDIO) ++ struct sio_hdl *hdl; ++ struct sio_par par; + #elif defined(UL_BSD) + audio_info_t ainfo; // ioctl structure + audio_offset_t audio_offset; // offset in audiostream +@@ -120,7 +126,7 @@ class slDSP (private) + #endif + + +-#if !defined(UL_WIN32) && !defined(UL_MACINTOSH) && !defined(UL_MAC_OSX) ++#if !defined(UL_WIN32) && !defined(UL_MACINTOSH) && !defined(UL_MAC_OSX) && !defined(SL_USING_SNDIO) + int ioctl ( int cmd, int param = 0 ) + { + if ( error ) return param ; |