22 #ifndef MM_SHARED_XEEN_SOUND_DRIVER_MT32_H 23 #define MM_SHARED_XEEN_SOUND_DRIVER_MT32_H 26 #include "audio/mididrv.h" 27 #include "mm/shared/xeen/sound_driver.h" 37 MidiValue(uint8 command, uint8 op1, uint8 op2) {
38 _val = (command) | ((uint32)op2 << 16) | ((uint32)op1 << 8);
45 static const uint8 MIDI_NOTE_MAP[24];
49 const byte *_musInstrumentPtrs[16];
50 const byte *_fxInstrumentPtrs[16];
55 int _musicVolume, _sfxVolume;
66 void write(uint8 command, uint8 op1, uint8 op2);
76 void resetFrequencies();
81 void playInstrument(byte channelNum,
const byte *data,
bool isFx);
86 byte calculateLevel(byte level,
bool isFx);
91 byte noteMap(byte note);
93 bool musSetInstrument(
const byte *&srcP, byte param)
override;
94 bool musSetPitchWheel(
const byte *&srcP, byte param)
override;
95 bool musSetPanning(
const byte *&srcP, byte param)
override;
96 bool musFade(
const byte *&srcP, byte param)
override;
97 bool musStartNote(
const byte *&srcP, byte param)
override;
98 bool musSetVolume(
const byte *&srcP, byte param)
override;
99 bool musInjectMidi(
const byte *&srcP, byte param)
override;
100 bool musPlayInstrument(
const byte *&srcP, byte param)
override;
101 bool cmdFreezeFrequency(
const byte *&srcP, byte param)
override;
102 bool cmdChangeFrequency(
const byte *&srcP, byte param)
override;
104 bool fxSetInstrument(
const byte *&srcP, byte param)
override;
105 bool fxSetVolume(
const byte *&srcP, byte param)
override;
106 bool fxMidiReset(
const byte *&srcP, byte param)
override;
107 bool fxMidiDword(
const byte *&srcP, byte param)
override;
108 bool fxSetPanning(
const byte *&srcP, byte param)
override;
109 bool fxChannelOff(
const byte *&srcP, byte param)
override;
110 bool fxFade(
const byte *&srcP, byte param)
override;
111 bool fxStartNote(
const byte *&srcP, byte param)
override;
112 bool fxInjectMidi(
const byte *&srcP, byte param)
override;
113 bool fxPlayInstrument(
const byte *&srcP, byte param)
override;
143 void playFX(uint effectId,
const byte *data)
override;
148 void playSong(
const byte *data)
override;
153 int songCommand(uint commandId, byte musicVolume = 0, byte sfxVolume = 0)
override;
void playFX(uint effectId, const byte *data) override
int songCommand(uint commandId, byte musicVolume=0, byte sfxVolume=0) override
void playSong(const byte *data) override
Definition: mididrv.h:309
void pausePostProcess() override
void sysExMessage(const byte *&data) override
Definition: detection.h:27
Definition: sound_driver_mt32.h:33
~SoundDriverMT32() override
Definition: sound_driver.h:56