Talk:PC Speaker

From OSDev Wiki
Jump to navigation Jump to search

The PWM "How It Works" section talks about "approximately 60 millionths of a second" for the speaker to switch positions, i.e. 60 microseconds; the rest of the article, however, talks about 60 MILLIseconds. 1/(60us) is about 16.7 kHz, 1/(60ms) is about 16.7 Hz; as the speaker is easily capable of playing beeps in the 100-5000 Hz range at a reasonable amplitude, I'm guessing 60 microseconds is correct, and 60 ms isn't. Source? - unknown

I have tested the code in QEMU (-soundhw pcspk) and in real hardware, and seems that even calling the nosound() function doesn't stops the sound. In QEMU, after having called such a function, the sound starts to sound choppy. - hextakatt