Based on the C++11 code by Joel Yliluoma / bisqwit, which in turn is based on information from NX-Engine. I have also taken the liberty of bundling the required wavetable bank and PixTone drums. Contrary to the documentation provided with the code, my version of dou_1006.zip, as downloaded over a decade ago, had the wavetable bank at offset 635,816 bytes into the file, not 1,115,748 bytes. Possibly a difference of having applied the translation patch? My copy is the original version, so I had to use a real resource parser to locate the waveforms. The player will obey the configured sample rate, loop count, and fade time for synthesizers, and also obey Repeat One to play indefinitely. The code should be quite robust to minor abuses, though I can't imagine how well it would hold up to random bad files, other than playing outright garbage. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
25 KiB
25 KiB