22 #ifndef AUDIO_MIDIPARSER_QT_H 23 #define AUDIO_MIDIPARSER_QT_H 25 #include "audio/midiparser.h" 26 #include "common/array.h" 27 #include "common/hashmap.h" 28 #include "common/queue.h" 29 #include "common/formats/quicktime.h" 61 bool loadMusic(byte *data, uint32 size)
override;
62 void unloadMusic()
override;
81 void parseNextEvent(
EventInfo &info)
override;
82 void resetTracking()
override;
84 void sendToDriver(uint32 b)
override;
85 void sendMetaEventToDriver(byte type, byte *data, uint16 length)
override;
88 SampleDesc *readSampleDesc(
Track *track, uint32 format, uint32 descSize)
override;
100 struct MIDITrackInfo {
122 uint32 readNextEvent();
123 void handleGeneralEvent(uint32 control);
124 void handleControllerEvent(uint32 control, uint32 part, byte intPart, byte fracPart);
125 void handleNoteEvent(uint32 part, byte pitch, byte velocity, uint32 length);
127 void definePart(uint32 part, uint32 instrument);
128 void setupPart(uint32 part);
130 byte getChannel(uint32 part);
131 bool isChannelAllocated(byte channel)
const;
132 byte findFreeChannel(uint32 part);
133 void deallocateFreeChannel();
134 void deallocateChannel(byte channel);
135 bool allChannelsAllocated()
const;
146 ChannelMap _channelMap;
148 void initFromContainerTracks();
Definition: midiparser_qt.h:55
int8 _source
Definition: midiparser_qt.h:97
Definition: quicktime.h:132
Definition: midiparser.h:84
Definition: quicktime.h:58
Definition: quicktime.h:276
bool loadFromTune(Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
bool loadFromContainerStream(Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
bool loadFromContainerFile(const Common::Path &fileName)
Definition: midiparser.h:289