mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 13:25:46 -04:00
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:
parent
a94ae50ffb
commit
bf01cc746f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue