]> icculus.org git repositories - btb/d2x.git/blob - include/hmp.h
make static
[btb/d2x.git] / include / hmp.h
1 #ifndef __HMP_H
2 #define __HMP_H
3 #include <physfs.h>
4
5
6 #define HMP_TRACKS 32
7
8 typedef struct hmp_track {
9         unsigned char *data;
10         unsigned int len;
11         unsigned char *cur;
12         unsigned int left;
13         unsigned int cur_time;
14 } hmp_track;
15
16 typedef struct hmp_file {
17         int num_trks;
18         hmp_track trks[HMP_TRACKS];
19         unsigned int cur_time;
20         int tempo;
21         unsigned char *pending;
22         unsigned int pending_size;
23         unsigned int pending_event;
24         int stop;
25         int bufs_in_mm;
26         int bLoop;
27         unsigned int midi_division;
28 } hmp_file;
29
30 hmp_file *hmp_open(const char *filename);
31 void hmp_close(hmp_file *hmp);
32 void hmp2mid(char *hmp_name, unsigned char **midbuf, unsigned int *midlen);
33
34 #endif