Lines Matching refs:format
62 return size_table[spec->format];
69 return size_table[spec->format] * spec->channels;
76 return spec->rate * size_table[spec->format] * spec->channels;
83 return (((pa_usec_t) (length / (size_table[spec->format] * spec->channels)) * PA_USEC_PER_SEC) / spec->rate);
90 return (size_t) (((t * spec->rate) / PA_USEC_PER_SEC)) * (size_table[spec->format] * spec->channels);
96 spec->format = PA_SAMPLE_INVALID;
103 int pa_sample_format_valid(unsigned format) {
104 return format < PA_SAMPLE_MAX;
123 !pa_sample_format_valid(spec->format)))
141 (a->format == b->format) &&
179 pa_snprintf(s, l, _("%s %uch %uHz"), pa_sample_format_to_string(spec->format), spec->channels, spec->rate);
202 pa_sample_format_t pa_parse_sample_format(const char *format) {
203 pa_assert(format);
205 if (strcasecmp(format, "s16le") == 0)
207 else if (strcasecmp(format, "s16be") == 0)
209 else if (strcasecmp(format, "s16ne") == 0 || strcasecmp(format, "s16") == 0 || strcasecmp(format, "16") == 0)
211 else if (strcasecmp(format, "s16re") == 0)
213 else if (strcasecmp(format, "u8") == 0 || strcasecmp(format, "8") == 0)
215 else if (strcasecmp(format, "float32") == 0 || strcasecmp(format, "float32ne") == 0 || strcasecmp(format, "float") == 0)
217 else if (strcasecmp(format, "float32re") == 0)
219 else if (strcasecmp(format, "float32le") == 0)
221 else if (strcasecmp(format, "float32be") == 0)
223 else if (strcasecmp(format, "ulaw") == 0 || strcasecmp(format, "mulaw") == 0)
225 else if (strcasecmp(format, "alaw") == 0)
227 else if (strcasecmp(format, "s32le") == 0)
229 else if (strcasecmp(format, "s32be") == 0)
231 else if (strcasecmp(format, "s32ne") == 0 || strcasecmp(format, "s32") == 0 || strcasecmp(format, "32") == 0)
233 else if (strcasecmp(format, "s32re") == 0)
235 else if (strcasecmp(format, "s24le") == 0)
237 else if (strcasecmp(format, "s24be") == 0)
239 else if (strcasecmp(format, "s24ne") == 0 || strcasecmp(format, "s24") == 0 || strcasecmp(format, "24") == 0)
241 else if (strcasecmp(format, "s24re") == 0)
243 else if (strcasecmp(format, "s24-32le") == 0)
245 else if (strcasecmp(format, "s24-32be") == 0)
247 else if (strcasecmp(format, "s24-32ne") == 0 || strcasecmp(format, "s24-32") == 0)
249 else if (strcasecmp(format, "s24-32re") == 0)