aboutsummaryrefslogtreecommitdiffstats
path: root/audio/nas/files/patch-ab
blob: 125151b9b5106d59fc0589b9bf4c024d44efce4c (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- server/dda/voxware/auvoxware.c.orig Sat Oct 23 08:44:47 2004
+++ server/dda/voxware/auvoxware.c  Mon Nov 15 21:13:49 2004
@@ -133,7 +133,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#ifndef SVR4
+#if !defined(SVR4) && !defined(__FreeBSD__)
 #include <getopt.h>
 #endif
 #include <sys/types.h>
@@ -670,7 +670,11 @@
   if(sndStatOut.fd == -1)
     {
       while ((sndStatOut.fd = open(sndStatOut.device, 
+#if defined(__FreeBSD__)
+                                   sndStatOut.howToOpen|extramode, 
+#else
                                    sndStatOut.howToOpen|O_SYNC|extramode, 
+#endif
                                    0666)) == -1 && wait)
         {
           osLogMsg("openDevice: waiting on output device\n");
@@ -1330,6 +1334,11 @@
 /*
  * Setup soundcard at maximum audio quality.
  */
+
+#if defined(__FreeBSD__)
+#define NO_16_BIT_SAMPLING
+#endif
+
 static void setupSoundcard(sndStatPtr)
 SndStat* sndStatPtr;
 {
@@ -1571,7 +1580,11 @@
           sndStatOut.device, sndStatOut.howToOpen);
    
    if ((fd = open(sndStatOut.device, 
+#if defined(__FreeBSD__)
+              sndStatOut.howToOpen|extramode, 0)) == -1)
+#else
               sndStatOut.howToOpen|O_SYNC|extramode, 0)) == -1)
+#endif
      {
        UNIDENTMSG;
             osLogMsg("Output open(%s) failed: %s\n",