Lines Matching full:formats
34 } formats[] = { variable
57 while (formats[from].bits < *nbits_ && formats[from].bits != 0) in select_format()
59 for (to = from; formats[to].bits != 0; to++) ; /* find end of list */ in select_format()
65 if (snd_pcm_format_mask_test(mask, formats[i].alsa_fmt)) { in select_format()
66 if (formats[i].enc == *encoding_) { in select_format()
76 /* no candidate found yet; now try formats with less bits: */ in select_format()
79 bits_next = formats[from-1].bits; in select_format()
80 while (from && formats[from-1].bits == bits_next) in select_format()
89 if (*nbits_ != formats[cand].bits || *encoding_ != formats[cand].enc) { in select_format()
92 *nbits_ = formats[cand].bits; in select_format()
93 *encoding_ = formats[cand].enc; in select_format()
96 snd_pcm_format_name(formats[cand].alsa_fmt), in select_format()
97 snd_pcm_format_description(formats[cand].alsa_fmt)); in select_format()
123 _(snd_pcm_hw_params_set_format, (p->pcm, params, formats[p->format].alsa_fmt)); in setup()
141 p->buf_len = sox_globals.bufsiz * 8 / formats[p->format].bytes / in setup()
158 p->buf = lsx_malloc(p->buf_len * formats[p->format].bytes); in setup()
197 switch (formats[p->format].alsa_fmt) { in read_()
271 switch (formats[p->format].alsa_fmt) { in write_()
333 p->buf + i * formats[p->format].bytes, in write_()