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 *);
54 typedef wavfile aifffile
; /* They're the same */
56 input_format
*open_audio_file(FILE *in
, oe_enc_opt
*opt
);
58 int raw_open(FILE *in
, oe_enc_opt
*opt
, unsigned char *buf
, int buflen
);
59 int wav_open(FILE *in
, oe_enc_opt
*opt
, unsigned char *buf
, int buflen
);
60 int aiff_open(FILE *in
, oe_enc_opt
*opt
, unsigned char *buf
, int buflen
);
61 int wav_id(unsigned char *buf
, int len
);
62 int aiff_id(unsigned char *buf
, int len
);
63 void wav_close(void *);
64 void raw_close(void *);
66 long wav_read(void *, float **buffer
, int samples
);
67 long wav_ieee_read(void *, float **buffer
, int samples
);
68 long raw_read_stereo(void *, float **buffer
, int samples
);
70 #endif /* __AUDIO_H */