4 ms·
I remember playing this game on an old DOS laptop, even in the early 2000s. This version is demonstrating an interesting gotcha with emulating sound. The old P
by kmill 3y ago
I remember playing this game on an old DOS laptop, even in the early 2000s.
This version is demonstrating an interesting gotcha with emulating sound. The old PC speaker hardware ran at over 1 MHz, and it would generate square waves at integer divisors of this rate. This version of the game is sampling these square waves at 48 KHz, and the jitter from the waves not lining up perfectly adds a bunch of noise known as aliasing artifacts. It's what's giving the music a sort of DTMF (touch tone) quality to it.
I recompiled the game locally with a mitigation for this effect, just by oversampling and taking an average, and it sounds a lot better.
Game Boys also have audio hardware that runs at such high frequencies. I wonder how many emulators run at that rate and downsample properly? High-quality square waves are tricky!