aboutsummaryrefslogtreecommitdiff
path: root/scumm/instrument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r--scumm/instrument.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp
index bd7eec8a49..e8201ab8d7 100644
--- a/scumm/instrument.cpp
+++ b/scumm/instrument.cpp
@@ -133,6 +133,7 @@ public:
Instrument_Program (Serializer *s);
void saveOrLoad (Serializer *s);
void send (MidiChannel *mc);
+ void copy_to (Instrument *dest) { dest->program (_program, _mt32); }
};
class Instrument_Adlib : public InstrumentInternal {
@@ -161,6 +162,7 @@ public:
Instrument_Adlib (Serializer *s);
void saveOrLoad (Serializer *s);
void send (MidiChannel *mc);
+ void copy_to (Instrument *dest) { dest->adlib ((byte *) &_instrument); }
};
class Instrument_Roland : public InstrumentInternal {
@@ -230,6 +232,7 @@ public:
Instrument_Roland (Serializer *s);
void saveOrLoad (Serializer *s);
void send (MidiChannel *mc);
+ void copy_to (Instrument *dest) { dest->roland ((byte *) &_instrument); }
};