Hi,
I think it would not be difficult to add a real speaker emulation with
the audio API written by malc, at least to simulate tone generation
using the PIT.
Regards,
Fabrice.
Joachim Henke wrote:
Ok, although this ugly hack has nothing to do with real PC speaker emulation,
it's probably the most portable way to have some noise anyway. I just post
this for people (like me) who are missing their guest operating system beeps.
For this case the patch below is "better than nothing" (c:
Greets
Jo.
--- pc.c
+++ pc.c
@@ -276,6 +276,11 @@
static void speaker_ioport_write(void *opaque, uint32_t addr, uint32_t val)
{
+ int spk_off = speaker_data_on ^ 1;
+
speaker_data_on = (val >> 1) & 1;
pit_set_gate(pit, 2, val & 1);
+ /* ring terminal bell, if speaker is switched on */
+ if (spk_off & speaker_data_on)
+ puts("*beep*\a");
}
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel