genmidi: Disable OPL2 waveform checks.

Pretty much every Sound Blaster-compatible card used an OPL3 chip
(everything since the Sound Blaster 2 in October 1991) so it seems
reasonable to add this as a requirement. Because of the way that the new
waveforms are arranged in OPL3, it's a pretty graceful degradation if
they're used on an OPL2 anyway (see datasheet, page 14).
This commit is contained in:
Simon Howard 2023-06-24 01:07:50 -04:00
parent a94ae50ffb
commit bf01cc746f

View file

@ -9,6 +9,8 @@ import sys
import sbi_file
import a2i_file
DO_OPL2_CHECK = False
# Check the specified instrument data is OPL2-compatible and does not
# use any OPL3 features. Returns an error message, or 'None' if data
# is valid.
@ -50,7 +52,8 @@ def load_instrument(filename):
else:
raise Exception("Unknown instrument file type: '%s'" % filename)
check_opl2(filename, result)
if DO_OPL2_CHECK:
check_opl2(filename, result)
return result