bbe16afa64
ok MAINTAINER
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
$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 @@
|
|
#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 +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 ;
|