Lines Matching refs:channels
44 int channels = 2;
84 err = snd_pcm_hw_params_set_channels(handle, params, channels);
86 printf("Channels count (%i) not available for %s: %s\n", channels, 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;
420 for (chn=0;chn<channels;chn++)
428 x[chn][0] = samples[i*channels+chn];
431 samples[i*channels+chn] = y[chn][0];
448 "-c,--channels channels\n"
484 {"channels", 1, NULL, 'c'},
536 channels = err >= 1 && err < 1024 ? err : 1;
587 printf("Parameters are %iHz, %s, %i channels, %s mode\n", rate, snd_pcm_format_name(format), channels, block ? "blocking" : "non-blocking");
608 x[0] = (float*) malloc(channels*sizeof(float));
609 x[1] = (float*) malloc(channels*sizeof(float));
610 x[2] = (float*) malloc(channels*sizeof(float));
611 y[0] = (float*) malloc(channels*sizeof(float));
612 y[1] = (float*) malloc(channels*sizeof(float));
613 y[2] = (float*) malloc(channels*sizeof(float));
625 if (snd_pcm_format_set_silence(format, buffer, latency*channels) < 0) {