22 #ifndef SCUMM_IMUSE_INSTRUMENT_H 23 #define SCUMM_IMUSE_INSTRUMENT_H 26 #include "common/scummsys.h" 27 #include "common/serializer.h" 40 virtual bool is_valid() = 0;
58 Instrument() : _type(0), _instrument(0), _nativeMT32Device(
false) { }
60 void setNativeMT32Mode(
bool isNativeMT32) { _nativeMT32Device = isNativeMT32; }
61 static const byte _gmRhythmMap[35];
66 _instrument->copy_to(dest);
71 void program(byte program, byte bank,
bool mt32SoundType);
72 void adlib(
const byte *instrument);
73 void roland(
const byte *instrument);
74 void pcspk(
const byte *instrument);
76 byte getType() {
return _type; }
77 bool isValid() {
return (_instrument ? _instrument->is_valid() :
false); }
81 _instrument->send(mc);
84 bool _nativeMT32Device;
Definition: serializer.h:79
Definition: serializer.h:308
Definition: mididrv.h:537
Definition: instrument.h:35
Definition: instrument.h:43