diff options
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r-- | scumm/instrument.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp index f0bfdb082d..e1f129006c 100644 --- a/scumm/instrument.cpp +++ b/scumm/instrument.cpp @@ -25,7 +25,7 @@ #include "scumm/instrument.h" #include "sound/mididrv.h" -#define NATIVE_MT32 false +#define NATIVE_MT32 true static const byte mt32_to_gm[128] = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F @@ -136,6 +136,7 @@ public: void send (MidiChannel *mc); void copy_to (Instrument *dest) { dest->program (_program, _mt32); } bool is_valid() { return (_program < 128); } + operator int() { return (_program < 128) ? _program : 255; } }; class Instrument_Adlib : public InstrumentInternal { |