27 #include <libkmid/dattypes.h>
28 #include <libkmid/midfile.h>
29 #include <libkmid/deviceman.h>
30 #include <libkmid/track.h>
31 #include <libkmid/notearray.h>
32 #include <kdemacros.h>
140 volatile ulong ticksTotal;
141 volatile ulong ticksPlayed;
142 volatile double millisecsPlayed;
143 volatile ulong beginmillisec;
149 volatile int SPEVprocessed;
150 volatile int SPEVplayed;
184 volatile int message KDE_DEPRECATED;
186 #define PLAYER_DOPAUSE 1
187 #define PLAYER_DOSTOP 2
188 #define PLAYER_SETPOS 4
189 #define PLAYER_HALT 8
191 volatile ulong gotomsec;
232 volatile bool isSendingAllNotesOff;
262 class MidiPlayerPrivate;
263 MidiPlayerPrivate *d;
278 void removeSpecialEvents(
void);
279 void parseSpecialEvents(
void);
280 void insertBeat(
SpecialEvent *ev,ulong ms,
int num,
int den);
281 void generateBeats(
void);
284 void debugSpecialEvents(
void);
305 int loadSong(
const char *filename);
311 void removeSong(
void);
355 void play(
bool calloutput=
false,
void output(
void) = 0);
362 void setParseSong(
bool b =
true);
368 void setGenerateBeats(
bool b =
false);
386 void setPos(ulong gotomsec,
class MidiStatus *midistat);
392 void setTempoRatio(
double ratio);