Lines 1-6
Link Here
|
1 |
--- ./server/dda/voxware/auvoxware.c.orig Sun Apr 29 17:11:08 2001 |
1 |
--- server/dda/voxware/auvoxware.c.orig Thu Jul 25 09:42:28 2002 |
2 |
+++ ./server/dda/voxware/auvoxware.c Sat Sep 7 17:02:34 2002 |
2 |
+++ server/dda/voxware/auvoxware.c Sat Oct 26 02:54:26 2002 |
3 |
@@ -154,16 +154,11 @@ |
3 |
@@ -133,7 +133,7 @@ |
|
|
4 |
|
5 |
#include <stdio.h> |
6 |
#include <stdlib.h> |
7 |
-#ifndef SVR4 |
8 |
+#if !defined(SVR4) && !defined(__FreeBSD__) |
9 |
#include <getopt.h> |
10 |
#endif |
11 |
#include <sys/types.h> |
12 |
@@ -171,16 +171,11 @@ |
4 |
#include <sys/param.h> |
13 |
#include <sys/param.h> |
5 |
#include <assert.h> |
14 |
#include <assert.h> |
6 |
|
15 |
|
Lines 21-58
Link Here
|
21 |
#endif |
30 |
#endif |
22 |
|
31 |
|
23 |
#include <audio/audio.h> |
32 |
#include <audio/audio.h> |
24 |
@@ -624,7 +619,11 @@ |
33 |
@@ -659,7 +654,11 @@ |
25 |
|
|
|
26 |
if(sndStatOut.fd == -1) |
34 |
if(sndStatOut.fd == -1) |
27 |
{ |
35 |
{ |
28 |
+#ifdef __FreeBSD__ |
36 |
while ((sndStatOut.fd = open(sndStatOut.device, |
29 |
+ while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen, 0666)) == -1 && wait) |
37 |
+#if defined(__FreeBSD__) |
|
|
38 |
+ sndStatOut.howToOpen|extramode, |
30 |
+#else |
39 |
+#else |
31 |
while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0666)) == -1 && wait) |
40 |
sndStatOut.howToOpen|O_SYNC|extramode, |
32 |
+#endif |
41 |
+#endif |
|
|
42 |
0666)) == -1 && wait) |
33 |
{ |
43 |
{ |
34 |
osLogMsg("openDevice: waiting on output device\n"); |
44 |
osLogMsg("openDevice: waiting on output device\n"); |
35 |
sleep(1); |
45 |
@@ -1310,6 +1309,11 @@ |
36 |
@@ -1269,6 +1268,11 @@ |
|
|
37 |
/* |
46 |
/* |
38 |
* Setup soundcard at maximum audio quality. |
47 |
* Setup soundcard at maximum audio quality. |
39 |
*/ |
48 |
*/ |
40 |
+ |
49 |
+ |
41 |
+#ifdef __FreeBSD__ |
50 |
+#if defined(__FreeBSD__) |
42 |
+#define NO_16_BIT_SAMPLING |
51 |
+#define NO_16_BIT_SAMPLING |
43 |
+#endif |
52 |
+#endif |
44 |
+ |
53 |
+ |
45 |
static void setupSoundcard(sndStatPtr) |
54 |
static void setupSoundcard(sndStatPtr) |
46 |
SndStat* sndStatPtr; |
55 |
SndStat* sndStatPtr; |
47 |
{ |
56 |
{ |
48 |
@@ -1425,7 +1429,11 @@ |
57 |
@@ -1472,7 +1476,11 @@ |
49 |
osLogMsg("openDevice OUT %s mode %d\n", |
|
|
50 |
sndStatOut.device, sndStatOut.howToOpen); |
58 |
sndStatOut.device, sndStatOut.howToOpen); |
51 |
|
59 |
|
52 |
+#ifdef __FreeBSD__ |
60 |
if ((fd = open(sndStatOut.device, |
53 |
+ if ((fd = open(sndStatOut.device, sndStatOut.howToOpen, 0)) == -1) |
61 |
+#if defined(__FreeBSD__) |
|
|
62 |
+ sndStatOut.howToOpen|extramode, 0)) == -1) |
54 |
+#else |
63 |
+#else |
55 |
if ((fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0)) == -1) |
64 |
sndStatOut.howToOpen|O_SYNC|extramode, 0)) == -1) |
56 |
+#endif |
65 |
+#endif |
57 |
{ |
66 |
{ |
58 |
UNIDENTMSG; |
67 |
UNIDENTMSG; |