3 ms·
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
by badlogic 4y 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.
- thesnide 4y agoI'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.
- thesnide 4y agoHave a look into https://bespin.org/~qz/pc-gpe/ https://bespin.org/~qz/pc-gpe/ for a trip down the memory lane
- bananaboy 4y agoThere’s a list with some links to source for sound libraries here: https://www.vogons.org/viewtopic.php?t=54318 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).