faca4c84be0b07bb268179bccbd41ab5c0d43f20
[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 \r
8         FILE *fp;\r
9         void (*close)(struct au_file*);\r
10         void (*reset)(struct au_file*);\r
11         int (*read)(struct au_file*, void*, int);\r
12 };\r
13 \r
14 struct au_file *au_open(const char *fname);\r
15 void au_close(struct au_file *au);\r
16 \r
17 void au_reset(struct au_file *au);\r
18 int au_read(struct au_file *au, void *buf, int size);\r
19 \r
20 #endif  /* AUFILE_H_ */\r