7 int au_open_wav(struct au_file *au);
\r
9 struct au_file *au_open(const char *fname)
\r
14 if(!(fp = fopen(fname, "rb"))) {
\r
15 fprintf(stderr, "au_open: failed to open file: %s: %s\n", fname, strerror(errno));
\r
19 if(!(au = malloc(sizeof *au))) {
\r
21 fprintf(stderr, "au_open: failed to allocate file structure: %s\n", strerror(errno));
\r
26 if(au_open_wav(au) != -1) {
\r
30 fprintf(stderr, "au_open: invalid file: %s\n", fname);
\r
36 void au_close(struct au_file *au)
\r
43 void au_reset(struct au_file *au)
\r
48 int au_read(struct au_file *au, void *buf, int size)
\r
50 return au->read(au, buf, size);
\r