22 #ifndef DGDS_SOUND_MIDIPARSER_H 23 #define DGDS_SOUND_MIDIPARSER_H 25 #include "dgds/sound/music.h" 26 #include "dgds/sound/resource/sci_resource.h" 27 #include "audio/midiparser.h" 54 void mainThreadBegin();
58 bool loadMusic(byte *, uint32)
override {
62 void sendInitCommands();
63 void unloadMusic()
override;
64 void setMasterVolume(byte masterVolume);
65 void setVolume(byte volume);
76 void allNotesOff()
override;
81 void sendFromScriptToDriver(uint32 midi);
82 void sendToDriver(uint32 midi)
override;
83 void sendToDriver(byte status, byte firstOp, byte secondOp) {
84 sendToDriver(status | ((uint32)firstOp << 8) | ((uint32)secondOp << 16));
87 void remapChannel(
int channel,
int devChannel);
90 void parseNextEvent(
EventInfo &info)
override;
91 bool processEvent(
const EventInfo &info,
bool fireEvents =
true)
override;
92 void midiMixChannels();
93 byte midiGetNextChannel(
long ticker);
94 void resetStateTracking();
95 void trackState(uint32 midi);
96 void sendToDriver_raw(uint32 midi);
101 bool _mainThreadCalled;
112 bool _channelUsed[16];
113 int16 _channelRemap[16];
114 byte _channelVolume[16];
132 #endif // DGDS_SOUND_MIDIPARSER_H Definition: sci_resource.h:74
Definition: midiparser_sci.h:49
Definition: midiparser.h:84
bool _abortParse
If a jump or other operation interrupts parsing, flag to abort.
Definition: midiparser.h:318
Definition: midiparser_sci.h:116
Definition: midiparser.h:289