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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- server/dda/voxware/auvoxware.c.orig Fri Dec 28 16:33:46 2001
+++ server/dda/voxware/auvoxware.c Fri Dec 28 16:58:50 2001
@@ -156,7 +156,9 @@
#ifdef __FreeBSD__
# include <machine/soundcard.h>
-# include <machine/pcaudioio.h>
+# ifdef __i386__
+# include <machine/pcaudioio.h>
+# endif
#else
# ifdef __NetBSD__
# include <sys/ioctl.h>
@@ -624,7 +626,11 @@
if(sndStatOut.fd == -1)
{
+#ifdef __FreeBSD__
+ while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen, 0666)) == -1 && wait)
+#else
while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0666)) == -1 && wait)
+#endif
{
osLogMsg("openDevice: waiting on output device\n");
sleep(1);
@@ -1269,6 +1275,11 @@
/*
* Setup soundcard at maximum audio quality.
*/
+
+#ifdef __FreeBSD__
+#define NO_16_BIT_SAMPLING
+#endif
+
static void setupSoundcard(sndStatPtr)
SndStat* sndStatPtr;
{
@@ -1425,7 +1436,11 @@
osLogMsg("openDevice OUT %s mode %d\n",
sndStatOut.device, sndStatOut.howToOpen);
+#ifdef __FreeBSD__
+ if ((fd = open(sndStatOut.device, sndStatOut.howToOpen, 0)) == -1)
+#else
if ((fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0)) == -1)
+#endif
{
UNIDENTMSG;
return AuFalse;
|