Lines Matching defs:channels
18 static unsigned int channels = 1; /* count of channels */
37 unsigned char *samples[channels];
38 int steps[channels];
50 for (chn = 0; chn < channels; chn++) {
77 for (chn = 0; chn < channels; chn++) {
127 /* set the count of channels */
128 err = snd_pcm_hw_params_set_channels(handle, params, channels);
130 printf("Channels count (%i) not available for playbacks: %s\n", channels, snd_strerror(err));
271 ptr += err * channels;
355 ptr += err * channels;
703 ptr += err * channels;
740 "-c,--channels count of channels in stream\n"
770 {"channels", 1, NULL, 'c'},
811 channels = atoi(optarg);
812 channels = channels < 1 ? 1 : channels;
813 channels = channels > 1024 ? 1024 : channels;
878 printf("Stream parameters are %iHz, %s, %i channels\n", rate, snd_pcm_format_name(format), channels);
899 samples = malloc((period_size * channels * snd_pcm_format_physical_width(format)) / 8);
905 areas = calloc(channels, sizeof(snd_pcm_channel_area_t));
910 for (chn = 0; chn < channels; chn++) {
913 areas[chn].step = channels * snd_pcm_format_physical_width(format);