$OpenBSD: patch-src_rmd_types_h,v 1.2 2010/07/01 10:10:09 jakemsr Exp $

sndio

--- src/rmd_types.h.orig	Sat Dec 13 06:16:57 2008
+++ src/rmd_types.h	Wed Jun 30 21:41:41 2010
@@ -41,10 +41,9 @@
 
     #define DEFAULT_AUDIO_DEVICE "hw:0,0"
 #else
-    #include <sys/ioctl.h>
-    #include <sys/soundcard.h>
+    #include <sndio.h>
 
-    #define DEFAULT_AUDIO_DEVICE "/dev/dsp"
+    #define DEFAULT_AUDIO_DEVICE "/dev/audio"	/* not used with sndio(7) */
 #endif
 
 #ifdef HAVE_LIBJACK
@@ -333,7 +332,7 @@ struct _ProgData {
     snd_pcm_t *sound_handle;
     snd_pcm_uframes_t periodsize;
 #else
-    int sound_handle;
+    struct sio_hdl *sound_handle;
     u_int32_t periodsize;
 #endif
 };
