JLChen
2020-12-10 a8c5f79b0d93adfa7f23601dd0fee30edc14f0d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * @file rem_aufile.h Audio File interface
 *
 * Copyright (C) 2010 Creytiv.com
 */
 
 
/** Audio file mode */
enum aufile_mode {
    AUFILE_READ,
    AUFILE_WRITE,
};
 
/** Audio file parameters */
struct aufile_prm {
    uint32_t srate;
    uint8_t channels;
    enum aufmt fmt;
};
 
struct aufile;
 
int aufile_open(struct aufile **afp, struct aufile_prm *prm,
        const char *filename, enum aufile_mode mode);
int aufile_read(struct aufile *af, uint8_t *p, size_t *sz);
int aufile_write(struct aufile *af, const uint8_t *p, size_t sz);