2009-12-26 08:21:21 -05:00
|
|
|
$OpenBSD: patch-src_sl_sl_h,v 1.2 2009/12/26 13:21:21 jakemsr Exp $
|
|
|
|
--- src/sl/sl.h.orig Mon Mar 10 19:06:24 2008
|
|
|
|
+++ src/sl/sl.h Wed Dec 16 02:01:05 2009
|
|
|
|
@@ -32,6 +32,8 @@
|
Import plib-1.8.5
PLIB is a suite of portable game librairies.
PLIB includes sound effects, music, a complete 3D engine, font
rendering, a simple Windowing library, a game scripting language, a GUI,
networking, 3D math library and a collection of handy utility functions.
All are 100% portable across nearly all modern computing platforms.
Each library component is fairly independent of the others - so if you
want to use SDL, GTK, GLUT, or FLTK instead of PLIB's 'PW' windowing
library, you can.
Based on a submission from Gallon Sylvestre (MAINTAINER)
2008-11-10 17:10:22 -05:00
|
|
|
#define SLDSP_DEFAULT_DEVICE "/dev/dsp"
|
|
|
|
#elif defined(UL_WIN32)
|
2009-12-26 08:21:21 -05:00
|
|
|
#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 +80,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 +125,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 ;
|