aboutsummaryrefslogtreecommitdiff
path: root/audio/rplay/files/patch-rplayd__audio__audio_FreeBSD.c
blob: 2a7d99ae2dee5e40f28f44c3d579f34a616e5ad8 (plain) (blame)
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
--- rplayd/audio/audio_FreeBSD.c.orig	Wed Mar 10 16:58:10 1999
+++ rplayd/audio/audio_FreeBSD.c	Thu Apr 11 07:45:56 2002
@@ -35,7 +35,7 @@
 #include <sys/ioctl.h>
 #include <sys/errno.h>
 #include <errno.h>
-#include <machine/soundcard.h>
+#include <sys/soundcard.h>
 
 /*
  * for the poor folks who don't have a sound card, but use the pc speaker
@@ -353,7 +353,7 @@
 	return (-1);
     }
 
-    if (!(mxdevmask & SOUND_MIXER_PCM))
+    if (!(mxdevmask & SOUND_MASK_PCM))
     {
 	report(REPORT_ERROR, "rplay_audio_get_volume: pcm mixer device not installed\n");
 	close(mx);
@@ -417,7 +417,7 @@
 	return (-1);
     }
 
-    if (!(mxdevmask & SOUND_MIXER_PCM))
+    if (!(mxdevmask & SOUND_MASK_PCM))
     {
 	report(REPORT_ERROR, "rplay_audio_set_volume: pcm mixer device not installed\n");
 	close(mx);