11a9e22781
- fixed config/Imakefile so 'configure' command would work under cygwin. Tested clients/server under cygwin. - corrected a possible race condition in auvoxware that could cause the server to hang under certain conditions. I do not know why I haven't seen this problem before, but I could recreate it easily by killing auplay while playing a long tune. If the system restarts syscalls after a signal handler has run, a situation could arise where the previous timer was never disabled. This could cause a previous ioctl(DSP_SYNC) called from setSampleRate() to be constantly interrupted and restarted, causing an apparent hang. Now we just turn off the timer as the first thing in setSampleRate() so DSP_SYNC can actually finish. We also turn off the timer when openDevice is called, so the 'wait for device to become available' code can work too. - Patch from Tobias Diedrich that allows mixer init to fail in the voxware server. - redid the FAQ in an attempt to make it more useful. I'll try to keep it up to date. - updated libtool due to a problem(s) reported by Steve McIntyre.
30 lines
794 B
Text
30 lines
794 B
Text
$NetBSD: patch-ad,v 1.10 2004/11/23 08:50:24 adam Exp $
|
|
|
|
--- server/dda/voxware/auvoxware.c.orig 2004-10-22 21:44:47.000000000 +0000
|
|
+++ server/dda/voxware/auvoxware.c
|
|
@@ -242,8 +242,13 @@ SndStat sndStatIn =
|
|
256, /* fragSize */
|
|
3, /* minFrags */
|
|
32, /* maxFrags */
|
|
+#if defined(__NetBSD__)
|
|
+ "@DEVOSSAUDIO@", /* device */
|
|
+ "/dev/mixer", /* mixer */
|
|
+#else
|
|
"/dev/dsp1", /* device */
|
|
"/dev/mixer1", /* mixer */
|
|
+#endif
|
|
#if defined(__CYGWIN__)
|
|
O_RDONLY, /* howToOpen */
|
|
#else
|
|
@@ -264,7 +269,11 @@ SndStat sndStatIn =
|
|
256, /* fragSize */
|
|
3, /* minFrags */
|
|
32, /* maxFrags */
|
|
+#if defined(__NetBSD__)
|
|
+ "@DEVOSSAUDIO@", /* device */
|
|
+#else
|
|
"/dev/dsp", /* device */
|
|
+#endif
|
|
"/dev/mixer", /* mixer */
|
|
#if defined(__CYGWIN__)
|
|
O_WRONLY, /* howToOpen */
|