22 #ifndef SCI_SOUND_MIDIPARSER_H 23 #define SCI_SOUND_MIDIPARSER_H 25 #include "sci/resource/resource.h" 26 #include "sci/sound/music.h" 27 #include "audio/midiparser.h" 55 void mainThreadBegin();
59 bool loadMusic(byte *, uint32)
override {
63 void sendInitCommands();
64 void unloadMusic()
override;
65 void setMasterVolume(byte masterVolume);
66 void setVolume(byte volume);
77 void allNotesOff()
override;
82 void sendFromScriptToDriver(uint32 midi);
83 void sendToDriver(uint32 midi)
override;
84 void sendToDriver(byte status, byte firstOp, byte secondOp) {
85 sendToDriver(status | ((uint32)firstOp << 8) | ((uint32)secondOp << 16));
88 void remapChannel(
int channel,
int devChannel);
91 void parseNextEvent(
EventInfo &info)
override;
92 bool processEvent(
const EventInfo &info,
bool fireEvents =
true)
override;
93 void midiMixChannels();
94 void midiFilterChannels(
int channelMask);
95 byte midiGetNextChannel(
long ticker);
96 void resetStateTracking();
97 void trackState(uint32 midi);
98 void sendToDriver_raw(uint32 midi);
103 bool _mainThreadCalled;
115 bool _channelUsed[16];
116 int16 _channelRemap[16];
117 byte _channelVolume[16];
134 #endif // SCI_SOUND_MIDIPARSER_H SciVersion
Definition: detection.h:135
Definition: resource.h:694
Definition: midiparser.h:84
Definition: midiparser_sci.h:119
Definition: midiparser_sci.h:50
bool _abortParse
If a jump or other operation interrupts parsing, flag to abort.
Definition: midiparser.h:318
Definition: midiparser.h:289