Page 1 of 1

How can I play sound through the PC speaker?

Posted: Thu Oct 01, 2020 8:48 am
by mrosdev
I'm trying to implement a simple audio driver for my os. I tried using some codes on the OSDev wiki but it didn't work for QEMU. :(

Re: How can I play sound through the PC speaker?

Posted: Thu Oct 01, 2020 11:52 pm
by Klakap
If you want sound from QEMU, you must use option -soundhw pcspk

Code: Select all

qemu-system-i386 -soundhw pcspk -hda youros.img
PC speaker driver can seem like https://github.com/Klaykap/BleskOS/blob ... peaker.asm