Hacker News new | ask | show | jobs
by badlogic 1278 days ago
In DJGPP, you can use uclock() to get a sort of high precision timer, at least much higher precision than the 18.2Hz timer usually employed in DOS apps.

As for audio, I'm afraid I have no suggestions. My memory is blurry, likely because audio programming in DOS was very not good.

2 comments

There’s a list with some links to source for sound libraries here: https://www.vogons.org/viewtopic.php?t=54318 Personally I’ve used Midas for an MS-DOS game project for sound effects. It’s also available for Windows so good for projects that are cross-platform. For demoscene productions I’ve used a number of different mod players (most recently IMS).
I'd suggest to simply use GUS programming for audio, since it does all the heavy mixing in HW.

It was a breeze for programmers, but a bane for consumers as it wasn't really compatible with the SB yet not cheap.

But as dosbox emulates it very nicely, it sounds like a good match now.

Have a look into https://bespin.org/~qz/pc-gpe/ for a trip down the memory lane