25 #include "common/util.h" 26 #include "common/mutex.h" 27 #include "common/random.h" 28 #include "audio/mididrv.h" 42 void setVolume(
int volume);
43 int getVolume()
const {
return _masterVolume; }
45 void playSong(uint16 songNum);
46 void stopSong() { stopMusic(); }
49 void setLoop(
bool loop) { _isLooping = loop; }
50 void queueTuneList(int16 tuneList);
51 bool queueSong(uint16 songNum);
56 void send(uint32 b)
override;
57 void metaEvent(byte type, byte *data, uint16 length)
override;
65 void queueUpdatePos();
66 uint8 randomQueuePos();
68 uint32 songOffset(uint16 songNum)
const;
69 uint32 songLength(uint16 songNum)
const;
71 static void timerCallback(
void *refCon) { ((
MidiMusic *)refCon)->onTimer(); }
76 byte _channelsVolume[16];
89 int16 _songQueue[MUSIC_QUEUE_SIZE];
93 uint32 _musicDataSize;
Definition: mididrv.h:309
Definition: mididrv.h:112
void send(uint32 b) override
Definition: mididrv.h:537
Definition: midiparser.h:289