1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/audio/nas/files/patch-ab
Chris D. Faulhaber e3bbb3138e Update port to 1.4
Add WWW

PR:		17645
Submitted by:	tkato@prontomail.ne.jp
2000-03-30 03:28:07 +00:00

39 lines
957 B
Plaintext

--- server/dda/voxware/auvoxware.c.orig Sun Mar 5 11:40:55 2000
+++ server/dda/voxware/auvoxware.c Sat Mar 25 15:18:36 2000
@@ -610,7 +610,11 @@
if(sndStatOut.fd == -1)
{
+#ifdef __FreeBSD__
+ while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR)) == -1 && wait)
+#else
while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR|O_SYNC)) == -1 && wait)
+#endif
{
osLogMsg("openDevice: waiting on output device\n");
sleep(1);
@@ -1230,6 +1234,11 @@
/*
* Setup soundcard at maximum audio quality.
*/
+
+#ifdef __FreeBSD__
+#define NO_16_BIT_SAMPLING
+#endif
+
static void setupSoundcard(sndStatPtr)
SndStat* sndStatPtr;
{
@@ -1380,7 +1389,11 @@
AL_initialized = AuTrue;
+#ifdef __FreeBSD__
+ if ((fd = open(sndStatOut.device, O_RDWR, 0)) == -1) {
+#else
if ((fd = open(sndStatOut.device, O_RDWR|O_SYNC, 0)) == -1) {
+#endif
UNIDENTMSG;
return AuFalse;
}