|
From: | Joachim Henke |
Subject: | [Qemu-devel] [PATCH] PC speaker emulation (fixed) |
Date: | Thu, 19 Jan 2006 21:44:56 +0100 |
Now it works fine with 32000 Hz, and I really encourage people (especially PC users) to test the attached patch. Call QEMU with the switch '-soundhw pcspk', and try to make some noise.
Regards, Jo. malc wrote:
b. Once AUD_write return zero one should stop writing untill some spacebecomes available (for all intents and purposes after callback will be called next time) Item b is probably why it hangs: you try to write N bytes, AUD_write returns zero, yet you are tring again immediately - ad nauseam. We have only one thread - hence audio can not push the data out of internal buffers into the host, and what you get is an infinite loop.
-- Joachim Henke http://he-jo.net/
pcspeaker.diff.gz
Description: GNU Zip compressed data
[Prev in Thread] | Current Thread | [Next in Thread] |