ba0328d8e5
spectemu emulates the 48k ZX Spectrum.
32 lines
697 B
Plaintext
32 lines
697 B
Plaintext
$OpenBSD: patch-spsound_c,v 1.1.1.1 2002/02/18 22:41:18 naddy Exp $
|
|
--- spsound.c.orig Thu May 7 00:08:45 1998
|
|
+++ spsound.c Sat Feb 16 01:20:00 2002
|
|
@@ -329,10 +329,13 @@ void setbufsize(void)
|
|
#ifdef SUN_SOUND
|
|
|
|
#include <sys/audioio.h>
|
|
+#include <sys/ioctl.h>
|
|
|
|
#define HAVE_SOUND_FLUSH
|
|
#ifdef HAVE_SOUND_FLUSH
|
|
+#ifndef __OpenBSD__
|
|
#include <stropts.h>
|
|
+#endif
|
|
#include <sys/conf.h>
|
|
#endif
|
|
|
|
@@ -347,7 +350,12 @@ static int samplenum;
|
|
static void close_snd(int normal)
|
|
{
|
|
#ifdef HAVE_SOUND_FLUSH
|
|
- if(normal) ioctl (snd, I_FLUSH, FLUSHW);
|
|
+ if(normal)
|
|
+#ifdef __OpenBSD__
|
|
+ ioctl (snd, AUDIO_FLUSH);
|
|
+#else
|
|
+ ioctl (snd, I_FLUSH, FLUSHW);
|
|
+#endif
|
|
#endif
|
|
|
|
close_generic();
|