Hello,
To test the sound drivers for my P8X180 computer I found the vgmplayer
from the SN76489 sound card by J.B. Langston and partially rewrote it to
adapt to my needs. While doing that I also added support for dual-chip
music supporting both SN76489 and AY-3-8910 chips.
Attached is the source code, the CP/M binary file (rename .BIN to .COM)
and some example music downloaded from
https://vgmrips.net/packs/
This player doesn't require the TMS9918 card and doesn't use interrupts,
just delay loops. The delays should be trimmed for a standard RC2014
running at 7.3728 MHz however I haven't done any math, they just sound
good enough for me. Z180 or different clock speeds needs to adjust the
delay accordingly.
Beware that there are very few controls and VGM files can be very big,
the player is limited to the TPA area size (54-55k depending on the CP/M
instance) and should work with up to version 1.51 files (not much tested).
Enjoy!
Best regards,
Marco