This is a tool that packs VGM files into a new compressed playback format, and four playback libraries, each with slightly different features:
- playback music only at 60hz
- playback music only at 30hz
- playback music and sound effects (with priority) at 60hz
- playback music and sound effects (with priority) at 30hz
The 30hz versions are intended to reduce the size of the packed audio data (slightly) and improve CPU load by processing less often. The sound effect playback is a single sound effect at a time - lower priority sound effects are discarded. All versions also provide memory locations where you can read back the current state of the four music channels (whether or not sound effects are playing, they always report the music).
The amount of memory needed depends on the player you choose to use, from 124 bytes of data and 608 bytes of code for the 60hz music only version, to 254 bytes of RAM and 1004 bytes of code for the 30hz music plus sound effects version. All players also require a workspace, which can be used for scratch data inbetween calls. (I store it in the scratchpad).
The playback libraries are intended for use with GCC and are included in my "libti99" at http://www.harmlessl...oftware/vgmcomp, and to make life easy, here's the demo program (in both TIFILES and DSK format!) Tested in Classic99 and MESS.
vgmdemo.jpg 95.73KB 4 downloads
vgmdemoti.zip 22.38KB 43 downloads
Edited by Tursi, Thu May 15, 2014 11:21 PM.