summaryrefslogtreecommitdiff
path: root/emulators/stella/patches/patch-aa
blob: 56161fecece478423657a1d5c4b84ac050fe3246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-aa,v 1.1.1.1 1999/05/18 23:14:16 tv Exp $

--- ../ui/sound/OSS.c.orig	Tue May 18 10:19:45 1999
+++ ../ui/sound/OSS.c	Tue May 18 10:24:03 1999
@@ -32,11 +32,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#ifdef __FreeBSD__
-  #include <machine/soundcard.h>
-#else
-  #include <sys/soundcard.h>
-#endif
+#include <soundcard.h>
 
 #include "TIASound.h"
 
@@ -61,9 +57,9 @@
   int mute = 0;
 
   /* Open the sound device for writing */
-  if((fd = open("/dev/dsp", O_WRONLY, 0)) == -1)
+  if((fd = open("/dev/mixer", O_WRONLY, 0)) == -1)
   {
-    printf("stella-sound: Unable to open /dev/dsp device!\n");
+    printf("stella-sound: Unable to open /dev/mixer device!\n");
     return 1;
   }