From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BoqF8-0005KC-Rg for qemu-devel@nongnu.org; Sun, 25 Jul 2004 17:09:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BoqF8-0005K0-1M for qemu-devel@nongnu.org; Sun, 25 Jul 2004 17:09:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BoqF7-0005Jx-R7 for qemu-devel@nongnu.org; Sun, 25 Jul 2004 17:09:13 -0400 Received: from [217.10.32.17] (helo=comtv.ru) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BoqBv-0005tj-3g for qemu-devel@nongnu.org; Sun, 25 Jul 2004 17:05:55 -0400 Received: from av1474.oops ([10.0.66.9] verified) by comtv.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 34197595 for qemu-devel@nongnu.org; Mon, 26 Jul 2004 00:57:55 +0400 Date: Mon, 26 Jul 2004 01:06:04 +0000 (UTC) From: malc Subject: Re: [Qemu-devel] Sound & Win98 In-Reply-To: <200407251455.40966.menola@sbcglobal.net> Message-ID: References: <20040725102549.C7E0A2A0E9@webmail222.herald.ox.ac.uk> <200407251455.40966.menola@sbcglobal.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, 25 Jul 2004, Joe Menola wrote: > On Sun July 25 2004 5:25 am, Nicolas Wu wrote: > > I had the same compile error as lindsay, but found this > > alternative patch that works: > > > > http://www.h7.dion.ne.jp/~qemu-win/download/qemu-0.6.0-6_aqemu.patch.gz > > > > most of the time it works with win98, but occasionally crashes; though > > it would appear to be sporadic :( > > > > nick > > I also have not been able to apply cleanly the previous patch I recommended > since version 0.5.5. The link you provided a patch which applied cleanly. > > Tested on WinXP > Sound works but XP crashes on 2nd sound event. Console output: > audio: write audio > system error: Unknown error 2996 > Aborted > > Win98 > Device manager reports that sb is present and working. However, I get no > sound. Testing from Control Panel>Sounds Properties>Preveiw>play...the play > button "greys out" and the stop button gets focus. No sound is produced, and > there's no output to console. It remains in this state until the stop button > is pushed. Perhaps I missed something in my 98 configuration? > > Using cvs updated Sun 25 Jul 2004, 13:49 > KDE 3.2.3 with arts set to use OSS audio device. Thank you for this detailed bug report. Following patch (which must be applied after qemu-0.6.0-6_aqemu.patch.gz will definitely workaround 1st problem and might help with 2nd. It would be interesting to know if "Unknown error 2996" goes away if vanilla OSS/ALSA is used. P.S. The only missing information is the name of the soundcard. --- oss.c Mon Jul 26 01:00:48 2004 +++ ../qq/oss.c Mon Jul 26 01:04:45 2004 @@ -796,12 +796,13 @@ play = MIN (left, bytes); written = write (s->fd, (void *) ((uint32_t) s->buf + s->rpos), play); - if (-1 == written) { + if (written < 0) { if (EAGAIN == errno || EINTR == errno) { return; } else { - ERRFail ("write audio"); + fprintf (stderr, "write failed, errno=%d\n", errno); + return; } } @@ -895,6 +896,9 @@ elapsed += s->leftover; } } + + if (elapsed < 1024) + return 0; if (elapsed > free) { lwarn ("audio can not keep up elapsed %d free %d\n", elapsed, free); -- mailto:malc@pulsesoft.com