summaryrefslogtreecommitdiff
path: root/audio/nas/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/nas/files/patch-ab')
-rw-r--r--audio/nas/files/patch-ab30
1 files changed, 15 insertions, 15 deletions
diff --git a/audio/nas/files/patch-ab b/audio/nas/files/patch-ab
index ea21ce3ea567..b01c243d0e4a 100644
--- a/audio/nas/files/patch-ab
+++ b/audio/nas/files/patch-ab
@@ -1,5 +1,5 @@
---- server/dda/voxware/auvoxware.c.orig Sun Mar 5 03:40:55 2000
-+++ server/dda/voxware/auvoxware.c Sat Dec 16 22:11:35 2000
+--- 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__
@@ -11,19 +11,19 @@
#else
# ifdef __NetBSD__
# include <sys/ioctl.h>
-@@ -610,7 +612,11 @@
+@@ -624,7 +626,11 @@
if(sndStatOut.fd == -1)
{
+#ifdef __FreeBSD__
-+ while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR)) == -1 && wait)
++ while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen, 0666)) == -1 && wait)
+#else
- while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR|O_SYNC)) == -1 && wait)
+ while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0666)) == -1 && wait)
+#endif
{
osLogMsg("openDevice: waiting on output device\n");
sleep(1);
-@@ -1230,6 +1236,11 @@
+@@ -1269,6 +1275,11 @@
/*
* Setup soundcard at maximum audio quality.
*/
@@ -35,15 +35,15 @@
static void setupSoundcard(sndStatPtr)
SndStat* sndStatPtr;
{
-@@ -1380,7 +1391,11 @@
-
- AL_initialized = AuTrue;
-
+@@ -1425,7 +1436,11 @@
+ osLogMsg("openDevice OUT %s mode %d\n",
+ sndStatOut.device, sndStatOut.howToOpen);
+
+#ifdef __FreeBSD__
-+ if ((fd = open(sndStatOut.device, O_RDWR, 0)) == -1) {
++ if ((fd = open(sndStatOut.device, sndStatOut.howToOpen, 0)) == -1)
+#else
- if ((fd = open(sndStatOut.device, O_RDWR|O_SYNC, 0)) == -1) {
+ if ((fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0)) == -1)
+#endif
- UNIDENTMSG;
- return AuFalse;
- }
+ {
+ UNIDENTMSG;
+ return AuFalse;