Hacker News new | ask | show | jobs
by jammi 2961 days ago
How about this? There are also plenty of DOS PC-speaker-savvy demos from the 90s on pouet.net and scene.org, but there are apparently no recordings of them on youtube without sound card configurations. Some of the late DOS games also had awesome PC-speaker support. There was also a Windows sound driver for the PC speaker in Windows 3.1 times, maybe Windows 95 as well. Basically; the faster the PC, the higher the sampling rate you can go. The sound output on Raspberry Pis and some of the cheaper USB sound cards are also very similar to having stereo PC speakers, since that's also about just dumb bit-banged PWM.

https://www.youtube.com/watch?v=dV1EMcH316s

1 comments

Not bad, but that C64 demo sounds clearly better. C64 can have something between 6-8 bits of resolution per sample using a trick invented by Mahoney (https://livet.se/mahoney/c64-files/Musik_RunStop_Technical_D...).

Mostly I remember this type of sound, even at higher sample rate: https://www.youtube.com/watch?v=1fErwWtkMS4

I wrote a noise shaping PC-beeper PWM converter in the nineties, oversampling at maybe 500 kHz or so. It still sounded very tinny. (First version was without shaping, and it had an annoying high frequency pitch.)

> Basically; the faster the PC, the higher the sampling rate you can go.

Not really, io-port (outb) encounters a brick wall pretty early. So no matter how fast the CPU is, you can't toggle the speaker any faster.