8 int setup_resample(oe_enc_opt *opt);
9 void clear_resample(oe_enc_opt *opt);
10 void setup_downmix(oe_enc_opt *opt);
11 void clear_downmix(oe_enc_opt *opt);
12 void setup_scaler(oe_enc_opt *opt, float scale);
13 void clear_scaler(oe_enc_opt *opt);
17 int (*id_func)(unsigned char *buf, int len); /* Returns true if can load file */
18 int id_data_len; /* Amount of data needed to id whether this can load the file */
19 int (*open_func)(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen);
20 void (*close_func)(void *);
55 typedef wavfile aifffile; /* They're the same */
57 input_format *open_audio_file(FILE *in, oe_enc_opt *opt);
59 int raw_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen);
60 int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen);
61 int aiff_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen);
62 int wav_id(unsigned char *buf, int len);
63 int aiff_id(unsigned char *buf, int len);
64 void wav_close(void *);
65 void raw_close(void *);
67 long wav_read(void *, float **buffer, int samples);
68 long wav_ieee_read(void *, float **buffer, int samples);
69 long raw_read_stereo(void *, float **buffer, int samples);
71 #endif /* __AUDIO_H */