| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | sox_i.h | 142 size_t lsx_readbuf(sox_format_t * ft, void *buf, size_t len); 143 int lsx_skipbytes(sox_format_t * ft, size_t n); 144 int lsx_padbytes(sox_format_t * ft, size_t n); 145 size_t lsx_writebuf(sox_format_t * ft, void const *buf, size_t len); 146 int lsx_reads(sox_format_t * ft, char *c, size_t len); 147 int lsx_writes(sox_format_t * ft, char const * c); 148 void lsx_set_signal_defaults(sox_format_t * ft); 151 size_t lsx_read_3_buf(sox_format_t * ft, sox_uint24_t *buf, size_t len); 152 size_t lsx_read_b_buf(sox_format_t * ft, uint8_t *buf, size_t len); 153 size_t lsx_read_df_buf(sox_format_t * ft, double *buf, size_t len); [all …]
|
| H A D | cvsd.h | 59 int lsx_cvsdstartread(sox_format_t * ft); 60 int lsx_cvsdstartwrite(sox_format_t * ft); 61 size_t lsx_cvsdread(sox_format_t * ft, sox_sample_t *buf, size_t nsamp); 62 size_t lsx_cvsdwrite(sox_format_t * ft, const sox_sample_t *buf, size_t nsamp); 63 int lsx_cvsdstopread(sox_format_t * ft); 64 int lsx_cvsdstopwrite(sox_format_t * ft); 66 int lsx_dvmsstartread(sox_format_t * ft); 67 int lsx_dvmsstartwrite(sox_format_t * ft); 68 int lsx_dvmsstopwrite(sox_format_t * ft);
|
| H A D | formats_i.c | 26 void lsx_fail_errno(sox_format_t * ft, int sox_errno, const char *fmt, ...) in lsx_fail_errno() 42 void lsx_set_signal_defaults(sox_format_t * ft) in lsx_set_signal_defaults() 54 int lsx_check_read_params(sox_format_t * ft, unsigned channels, in lsx_check_read_params() 96 size_t lsx_readbuf(sox_format_t * ft, void *buf, size_t len) in lsx_readbuf() 106 int lsx_skipbytes(sox_format_t * ft, size_t n) in lsx_skipbytes() 118 int lsx_padbytes(sox_format_t * ft, size_t n) in lsx_padbytes() 130 size_t lsx_writebuf(sox_format_t * ft, void const * buf, size_t len) in lsx_writebuf() 141 sox_uint64_t lsx_filelength(sox_format_t * ft) in lsx_filelength() 149 int lsx_flush(sox_format_t * ft) in lsx_flush() 154 off_t lsx_tell(sox_format_t * ft) in lsx_tell() [all …]
|
| H A D | flac.c | 60 sox_format_t* ft = (sox_format_t*)ft_data; in decoder_read_callback() 76 sox_format_t* ft = (sox_format_t*)ft_data; in decoder_seek_callback() 85 sox_format_t* ft = (sox_format_t*)ft_data; in decoder_tell_callback() 97 sox_format_t* ft = (sox_format_t*)ft_data; in decoder_length_callback() 104 sox_format_t* ft = (sox_format_t*)ft_data; in decoder_eof_callback() 110 sox_format_t * ft = (sox_format_t *) client_data; in decoder_metadata_callback() 143 sox_format_t * ft = (sox_format_t *) client_data; in decoder_error_callback() 154 sox_format_t * ft = (sox_format_t *) client_data; in decoder_write_callback() 214 static int start_read(sox_format_t * const ft) in start_read() 260 static size_t read_samples(sox_format_t * const ft, sox_sample_t * sampleBuffer, size_t const reque… in read_samples() [all …]
|
| H A D | wavpack.c | 38 return (int32_t)lsx_read_b_buf((sox_format_t *)ft, buf, (size_t)len);} in ft_read_b_buf() 40 return lsx_tell((sox_format_t *)ft);} in ft_tell() 42 return lsx_seeki((sox_format_t *)ft, (off_t)offset, SEEK_SET);} in ft_seek_abs() 44 return lsx_seeki((sox_format_t *)ft, (off_t)offset, mode);} in ft_seek_rel() 46 return lsx_unreadb((sox_format_t *)ft, (unsigned)b);} in ft_unreadb() 48 return (uint32_t)lsx_filelength((sox_format_t *)ft);} in ft_filelength() 50 return ((sox_format_t *)ft)->seekable;} in ft_is_seekable() 52 priv_t * p = (priv_t *)((sox_format_t *)ft)->priv; in ft_write_b_buf() 55 return (int32_t)lsx_write_b_buf((sox_format_t *)ft, buf, (size_t)len);} in ft_write_b_buf() 62 static int start_read(sox_format_t * ft) in start_read() [all …]
|
| H A D | aiff.h | 17 int lsx_aiffstartread(sox_format_t * ft); 18 int lsx_aiffstopread(sox_format_t * ft); 19 int lsx_aiffstartwrite(sox_format_t * ft); 20 int lsx_aiffstopwrite(sox_format_t * ft); 21 int lsx_aifcstartwrite(sox_format_t * ft); 22 int lsx_aifcstopwrite(sox_format_t * ft);
|
| H A D | vox.h | 18 int lsx_vox_start(sox_format_t * ft); 19 int lsx_ima_start(sox_format_t * ft); 20 size_t lsx_vox_read(sox_format_t * ft, sox_sample_t *buffer, size_t len); 21 int lsx_vox_stopread(sox_format_t * ft); 22 size_t lsx_vox_write(sox_format_t * ft, const sox_sample_t *buffer, size_t length); 23 int lsx_vox_stopwrite(sox_format_t * ft);
|
| H A D | adpcms.h | 49 int lsx_adpcm_oki_start(sox_format_t * ft, adpcm_io_t * state); 50 int lsx_adpcm_ima_start(sox_format_t * ft, adpcm_io_t * state); 51 size_t lsx_adpcm_read(sox_format_t * ft, adpcm_io_t * state, sox_sample_t *buffer, size_t len); 52 int lsx_adpcm_stopread(sox_format_t * ft, adpcm_io_t * state); 53 size_t lsx_adpcm_write(sox_format_t * ft, adpcm_io_t * state, const sox_sample_t *buffer, size_t le… 54 void lsx_adpcm_flush(sox_format_t * ft, adpcm_io_t * state); 55 int lsx_adpcm_stopwrite(sox_format_t * ft, adpcm_io_t * state);
|
| H A D | opus.c | 52 sox_format_t* ft = (sox_format_t*)ft_data; in callback_read() 58 sox_format_t* ft = (sox_format_t*)ft_data; in callback_seek() 74 sox_format_t* ft = (sox_format_t*)ft_data; in callback_tell() 88 static int startread(sox_format_t * ft) in startread() 144 static int refill_buffer(sox_format_t * ft) in refill_buffer() 176 static size_t read_samples(sox_format_t * ft, sox_sample_t * buf, size_t len) in read_samples() 208 static int stopread(sox_format_t * ft) in stopread() 218 static int seek(sox_format_t * ft, uint64_t offset) in seek()
|
| H A D | vox.c | 19 int lsx_vox_start(sox_format_t * ft) in lsx_vox_start() 24 int lsx_ima_start(sox_format_t * ft) in lsx_ima_start() 29 size_t lsx_vox_read(sox_format_t * ft, sox_sample_t *buffer, size_t len) in lsx_vox_read() 34 int lsx_vox_stopread(sox_format_t * ft) in lsx_vox_stopread() 39 size_t lsx_vox_write(sox_format_t * ft, const sox_sample_t *buffer, size_t length) in lsx_vox_write() 44 int lsx_vox_stopwrite(sox_format_t * ft) in lsx_vox_stopwrite()
|
| H A D | vorbis.c | 67 sox_format_t* ft = (sox_format_t*)ft_data; in callback_read() 74 sox_format_t* ft = (sox_format_t*)ft_data; in callback_seek() 90 sox_format_t* ft = (sox_format_t*)ft_data; in callback_tell() 104 static int startread(sox_format_t * ft) in startread() 194 static size_t read_samples(sox_format_t * ft, sox_sample_t * buf, size_t len) in read_samples() 226 static int stopread(sox_format_t * ft) in stopread() 238 static int oe_write_page(ogg_page * page, sox_format_t * ft) in oe_write_page() 250 static int write_vorbis_header(sox_format_t * ft, vorbis_enc_t * ve) in write_vorbis_header() 294 static int startwrite(sox_format_t * ft) in startwrite() 344 static size_t write_samples(sox_format_t * ft, const sox_sample_t * buf, in write_samples() [all …]
|
| H A D | lpc10.c | 44 static void write_bits(sox_format_t * ft, INT32 *bits, int len) in write_bits() 99 static int read_bits(sox_format_t * ft, INT32 *bits, int len) in read_bits() 121 static int startread(sox_format_t * ft) in startread() 133 static int startwrite(sox_format_t * ft) in startwrite() 146 static size_t read_samples(sox_format_t * ft, sox_sample_t *buf, size_t len) in read_samples() 171 static size_t write_samples(sox_format_t * ft, const sox_sample_t *buf, size_t len) in write_samples() 195 static int stopread(sox_format_t * ft) in stopread() 204 static int stopwrite(sox_format_t * ft) in stopwrite()
|
| H A D | skelform.c | 39 static int startread(sox_format_t * ft) in startread() 78 static size_t read_samples(sox_format_t * ft, sox_sample_t *buf, size_t len) in read_samples() 111 static int stopread(sox_format_t UNUSED * ft) in stopread() 116 static int startwrite(sox_format_t * ft) in startwrite() 152 static size_t write_samples(sox_format_t * ft, const sox_sample_t *buf, size_t len) in write_samples() 178 static int stopwrite(sox_format_t UNUSED * ft) in stopwrite() 186 static int seek(sox_format_t UNUSED * ft, uint64_t UNUSED offset) in seek()
|
| H A D | pulseaudio.c | 15 static int setup(sox_format_t *ft, int is_input) in setup() 83 static int startread(sox_format_t *ft) in startread() 88 static int stopread(sox_format_t * ft) in stopread() 97 static size_t read_samples(sox_format_t *ft, sox_sample_t *buf, size_t nsamp) in read_samples() 118 static int startwrite(sox_format_t * ft) in startwrite() 123 static size_t write_samples(sox_format_t *ft, const sox_sample_t *buf, size_t nsamp) in write_samples() 147 static int stopwrite(sox_format_t * ft) in stopwrite()
|
| H A D | prc.c | 69 static void prcwriteheader(sox_format_t * ft); 71 static int seek(sox_format_t * ft, uint64_t offset) in seek() 116 static int prc_checkheader(sox_format_t * ft, char *head) in prc_checkheader() 122 static int startread(sox_format_t * ft) in startread() 212 static unsigned read_cardinal(sox_format_t * ft) in read_cardinal() 246 static size_t read_samples(sox_format_t * ft, sox_sample_t *buf, size_t samp) in read_samples() 286 static int stopread(sox_format_t * ft) in stopread() 305 static int startwrite(sox_format_t * ft) in startwrite() 329 static void write_cardinal(sox_format_t * ft, unsigned a) in write_cardinal() 360 static size_t write_samples(sox_format_t * ft, const sox_sample_t *buf, size_t nsamp) in write_samples() [all …]
|
| H A D | sndfile.c | 79 static void drain_log_buffer(sox_format_t * ft) in drain_log_buffer() 214 sox_format_t *ft = (sox_format_t *)user_data; in vio_get_filelen() 219 return (sf_count_t)lsx_filelength((sox_format_t *)user_data); in vio_get_filelen() 224 return lsx_seeki((sox_format_t *)user_data, (off_t)offset, whence); in vio_seek() 229 return lsx_readbuf((sox_format_t *)user_data, ptr, (size_t)count); in vio_read() 234 return lsx_writebuf((sox_format_t *)user_data, ptr, (size_t)count); in vio_write() 239 return lsx_tell((sox_format_t *)user_data); in vio_tell() 277 static int start(sox_format_t * ft) in start() 311 static int check_read_params(sox_format_t * ft, unsigned channels, in check_read_params() 341 static int startread(sox_format_t * ft) in startread() [all …]
|
| H A D | gsm.c | 53 static int gsmstart_rw(sox_format_t * ft, int w) in gsmstart_rw() 87 static int sox_gsmstartread(sox_format_t * ft) in sox_gsmstartread() 92 static int sox_gsmstartwrite(sox_format_t * ft) in sox_gsmstartwrite() 104 static size_t sox_gsmread(sox_format_t * ft, sox_sample_t *buf, size_t samp) in sox_gsmread() 148 static int gsmflush(sox_format_t * ft) in gsmflush() 183 static size_t sox_gsmwrite(sox_format_t * ft, const sox_sample_t *buf, size_t samp) in sox_gsmwrite() 207 static int sox_gsmstopread(sox_format_t * ft) in sox_gsmstopread() 220 static int sox_gsmstopwrite(sox_format_t * ft) in sox_gsmstopwrite()
|
| H A D | amr.h | 63 static size_t decode_1_frame(sox_format_t * ft) in decode_1_frame() 137 static size_t amr_duration_frames(sox_format_t * ft) in amr_duration_frames() 160 static int startread(sox_format_t * ft) in startread() 201 static size_t read_samples(sox_format_t * ft, sox_sample_t * buf, size_t len) in read_samples() 216 static int stopread(sox_format_t * ft) in stopread() 231 static int startwrite(sox_format_t * ft) in startwrite() 269 static sox_bool encode_1_frame(sox_format_t * ft) in encode_1_frame() 280 static size_t write_samples(sox_format_t * ft, const sox_sample_t * buf, size_t len) in write_samples() 297 static int stopwrite(sox_format_t * ft) in stopwrite()
|
| H A D | raw.c | 22 int lsx_rawseek(sox_format_t * ft, uint64_t offset) in lsx_rawseek() 29 int lsx_rawstart(sox_format_t * ft, sox_bool default_rate, in lsx_rawstart() 71 sox_format_t * ft, sox_sample_t *buf, size_t len) \ 99 sox_format_t * ft, sox_sample_t const * buf, size_t len) \ 127 static ft_##type##_fn * type##_fn(sox_format_t * ft) { \ 168 (sox_format_t * ft, sox_sample_t * buf, size_t len); 173 size_t lsx_rawread(sox_format_t * ft, sox_sample_t * buf, size_t nsamp) in GET_FORMAT() 183 (sox_format_t * ft, sox_sample_t const * buf, size_t len); 189 sox_format_t * ft, sox_sample_t const * buf, size_t nsamp) in GET_FORMAT()
|
| H A D | adpcms.c | 149 static int adpcm_start(sox_format_t * ft, adpcm_io_t * state, sox_encoding_t type) in adpcm_start() 161 int lsx_adpcm_oki_start(sox_format_t * ft, adpcm_io_t * state) in lsx_adpcm_oki_start() 166 int lsx_adpcm_ima_start(sox_format_t * ft, adpcm_io_t * state) in lsx_adpcm_ima_start() 184 size_t lsx_adpcm_read(sox_format_t * ft, adpcm_io_t * state, sox_sample_t * buffer, size_t len) in lsx_adpcm_read() 222 int lsx_adpcm_stopread(sox_format_t * ft UNUSED, adpcm_io_t * state) in lsx_adpcm_stopread() 246 size_t lsx_adpcm_write(sox_format_t * ft, adpcm_io_t * state, const sox_sample_t * buffer, size_t l… in lsx_adpcm_write() 291 void lsx_adpcm_flush(sox_format_t * ft, adpcm_io_t * state) in lsx_adpcm_flush() 317 int lsx_adpcm_stopwrite(sox_format_t * ft, adpcm_io_t * state) in lsx_adpcm_stopwrite()
|
| H A D | sox.h | 1082 typedef struct sox_format_t sox_format_t; typedef 1126 LSX_PARAM_INOUT sox_format_t * ft /**< Format pointer. */ 1136 LSX_PARAM_INOUT sox_format_t * ft, /**< Format pointer. */ 1148 LSX_PARAM_INOUT sox_format_t * ft /**< Format pointer. */ 1158 LSX_PARAM_INOUT sox_format_t * ft /**< Format pointer. */ 1168 LSX_PARAM_INOUT sox_format_t * ft, /**< Format pointer. */ 1180 LSX_PARAM_INOUT sox_format_t * ft /**< Format pointer. */ 1190 LSX_PARAM_INOUT sox_format_t * ft, /**< Format pointer. */ 1500 struct sox_format_t { struct 1827 sox_format_t * [all …]
|
| H A D | aiff.c | 29 static double read_ieee_extended(sox_format_t *); 30 static int aiffwriteheader(sox_format_t *, uint64_t); 31 static int aifcwriteheader(sox_format_t *, uint64_t); 32 static void write_ieee_extended(sox_format_t *, double); 35 static int textChunk(char **text, char *chunkDescription, sox_format_t * ft); 36 static int commentChunk(char **text, char *chunkDescription, sox_format_t * ft); 37 static void reportInstrument(sox_format_t * ft); 39 int lsx_aiffstartread(sox_format_t * ft) in lsx_aiffstartread() 442 static void reportInstrument(sox_format_t * ft) in reportInstrument() 468 static int textChunk(char **text, char *chunkDescription, sox_format_t * ft) in textChunk() [all …]
|
| H A D | wav.c | 124 int (*read_fmt)(sox_format_t *ft, uint32_t len); 129 static int wavwritehdr(sox_format_t *, int); 135 static int wav_ima_adpcm_fmt(sox_format_t *ft, uint32_t len) in wav_ima_adpcm_fmt() 174 static unsigned short ImaAdpcmReadBlock(sox_format_t * ft) in ImaAdpcmReadBlock() 209 static int wav_ms_adpcm_fmt(sox_format_t *ft, uint32_t len) in wav_ms_adpcm_fmt() 276 static unsigned short AdpcmReadBlock(sox_format_t * ft) in AdpcmReadBlock() 311 static int xxxAdpcmWriteBlock(sox_format_t * ft) in xxxAdpcmWriteBlock() 351 static int wav_gsm_fmt(sox_format_t *ft, uint32_t len) in wav_gsm_fmt() 378 static int wavgsminit(sox_format_t * ft) in wavgsminit() 401 static void wavgsmdestroy(sox_format_t * ft) in wavgsmdestroy() [all …]
|
| H A D | cvsd.c | 172 static void cvsdstartcommon(sox_format_t * ft) in cvsdstartcommon() 211 int lsx_cvsdstartread(sox_format_t * ft) in lsx_cvsdstartread() 239 int lsx_cvsdstartwrite(sox_format_t * ft) in lsx_cvsdstartwrite() 263 int lsx_cvsdstopwrite(sox_format_t * ft) in lsx_cvsdstopwrite() 279 int lsx_cvsdstopread(sox_format_t * ft) in lsx_cvsdstopread() 291 size_t lsx_cvsdread(sox_format_t * ft, sox_sample_t *buf, size_t nsamp) in lsx_cvsdread() 358 size_t lsx_cvsdwrite(sox_format_t * ft, const sox_sample_t *buf, size_t nsamp) in lsx_cvsdwrite() 480 static int dvms_read_header(sox_format_t * ft, struct dvms_header *hdr) in dvms_read_header() 525 static int dvms_write_header(sox_format_t * ft, struct dvms_header *hdr) in dvms_write_header() 568 static void make_dvms_hdr(sox_format_t * ft, struct dvms_header *hdr) in make_dvms_hdr() [all …]
|
| H A D | coreaudio.c | 33 priv_t *ac = (priv_t*)((sox_format_t*)inClientData)->priv; in PlaybackIOProc() 78 priv_t *ac = (priv_t *)((sox_format_t*)inClientData)->priv; in RecIOProc() 119 static int setup(sox_format_t *ft, int is_input) in setup() 286 static int startread(sox_format_t *ft) in startread() 291 static size_t read_samples(sox_format_t *ft, sox_sample_t *buf, size_t nsamp) in read_samples() 323 static int stopread(sox_format_t * ft) in stopread() 336 static int startwrite(sox_format_t * ft) in startwrite() 341 static size_t write_samples(sox_format_t *ft, const sox_sample_t *buf, size_t nsamp) in write_samples() 381 static int stopwrite(sox_format_t * ft) in stopwrite()
|