Lines Matching defs:format
42 snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
79 err = snd_pcm_hw_params_set_format(handle, params, format);
81 printf("Sample format not available for %s: %s\n", id, snd_strerror(err));
173 snd_pcm_hw_params_t *pt_params, *ct_params; /* templates with rate, format and channels */
357 int frame_bytes = (snd_pcm_format_width(format) / 8) * channels;
447 "-f,--format sample format\n"
483 {"format", 1, NULL, 'f'},
528 format = snd_pcm_format_value(optarg);
529 if (format == SND_PCM_FORMAT_UNKNOWN) {
530 printf("Unknown format, setting to default S16_LE\n");
531 format = SND_PCM_FORMAT_S16_LE;
581 buffer = malloc((latency_max * snd_pcm_format_width(format) / 8) * 2);
587 printf("Parameters are %iHz, %s, %i channels, %s mode\n", rate, snd_pcm_format_name(format), channels, block ? "blocking" : "non-blocking");
625 if (snd_pcm_format_set_silence(format, buffer, latency*channels) < 0) {