fixed by preloading samples. the audio callback is being called from the
[dos_auplay] / src / aufile.h
1 #ifndef AUFILE_H_\r
2 #define AUFILE_H_\r
3 \r
4 struct au_file {\r
5         int rate, bits, chan;\r
6         void *data;\r
7         unsigned long size;\r
8 \r
9         FILE *fp;\r
10         void (*close)(struct au_file*);\r
11         void (*reset)(struct au_file*);\r
12         int (*read)(struct au_file*, void*, int);\r
13 };\r
14 \r
15 struct au_file *au_open(const char *fname);\r
16 void au_close(struct au_file *au);\r
17 \r
18 void au_reset(struct au_file *au);\r
19 int au_read(struct au_file *au, void *buf, int size);\r
20 \r
21 #endif  /* AUFILE_H_ */\r