On Sun, 25 Jul 2004, Joe Menola wrote:
Thank you for this detailed bug report.
My pleasure.
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.
I copied your text to file sb-sub.patch, but fudged things some how.
$ patch -p1 < sb-sub.patch
patch: **** Only garbage was found in the patch input.
Let's try that again:
$ cd /cvs/qemu
$ patch </path/to/patch/oss.c.patch
It would be interesting to know if "Unknown error 2996" goes away if
vanilla OSS/ALSA is used.
By that you mean disable arts?
Yes.
P.S. The only missing information is the name of the soundcard.
Physical soundcard? =SB Live 5.1
Ok. SB Live 5.1 + arts. Thanks.
------------------------------------------------------------------------
--- oss.c.orig Mon Jul 26 01:00:48 2004
+++ 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);
------------------------------------------------------------------------
_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel