8 #define HMP_BUFSIZE 1024
10 typedef struct event {
17 typedef struct hmp_track {
22 unsigned int cur_time;
25 typedef struct hmp_file {
27 hmp_track trks[HMP_TRACKS];
28 unsigned int cur_time;
33 unsigned char *pending;
34 unsigned int pending_size;
35 unsigned int pending_event;
36 int stop; /* 1 -> don't send more data */
37 int bufs_in_mm; /* number of queued buffers */
41 #define HMP_INVALID_FILE -1
42 #define HMP_OUT_OF_MEM -2
46 hmp_file *hmp_open(const char *filename);
47 int hmp_play(hmp_file *hmp);
48 void hmp_close(hmp_file *hmp);