mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Added SysEx hooks
svn-id: r7579
This commit is contained in:
parent
053e7cb71e
commit
9540497263
@ -74,6 +74,17 @@ MidiDriver_MPU401::MidiDriver_MPU401() : MidiDriver() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MidiDriver_MPU401::sysEx_customInstrument (byte channel, uint32 type, byte *instr) {
|
||||||
|
if (type != 'ROL ')
|
||||||
|
return;
|
||||||
|
|
||||||
|
// The SysEx stream for a Roland MT-32 instrument definition starts with
|
||||||
|
// the Roland manufacturer ID. So we just need to substitute the appropriate
|
||||||
|
// device # (i.e. channel), and go.
|
||||||
|
instr[1] = channel;
|
||||||
|
sysEx (instr, 253);
|
||||||
|
}
|
||||||
|
|
||||||
MidiChannel *MidiDriver_MPU401::allocateChannel() {
|
MidiChannel *MidiDriver_MPU401::allocateChannel() {
|
||||||
MidiChannel_MPU401 *chan;
|
MidiChannel_MPU401 *chan;
|
||||||
uint i;
|
uint i;
|
||||||
|
@ -90,6 +90,8 @@ public:
|
|||||||
void setTimerCallback(void *timer_param, void (*timer_proc) (void *));
|
void setTimerCallback(void *timer_param, void (*timer_proc) (void *));
|
||||||
uint32 getBaseTempo(void) { return 0x4A0000; }
|
uint32 getBaseTempo(void) { return 0x4A0000; }
|
||||||
|
|
||||||
|
virtual void sysEx_customInstrument (byte channel, uint32 type, byte *instr);
|
||||||
|
|
||||||
MidiChannel *allocateChannel();
|
MidiChannel *allocateChannel();
|
||||||
MidiChannel *getPercussionChannel() { return &_midi_channels [9]; }
|
MidiChannel *getPercussionChannel() { return &_midi_channels [9]; }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user