Lines Matching defs:count
24 static unsigned int channels = 1; /* count of channels */
38 int count, double *_phase)
70 while (count-- > 0) {
133 /* set the count of channels */
136 printf("Channels count (%u) not available for playbacks: %s\n", channels, snd_strerror(err));
287 static int wait_for_poll(snd_pcm_t *handle, struct pollfd *ufds, unsigned int count)
292 poll(ufds, count, -1);
293 snd_pcm_poll_descriptors_revents(handle, ufds, count, &revents);
308 int err, count, cptr, init;
310 count = snd_pcm_poll_descriptors_count (handle);
311 if (count <= 0) {
312 printf("Invalid poll descriptors count\n");
313 return count;
316 ufds = malloc(sizeof(struct pollfd) * count);
321 if ((err = snd_pcm_poll_descriptors(handle, ufds, count)) < 0) {
329 err = wait_for_poll(handle, ufds, count);
367 err = wait_for_poll(handle, ufds, count);
427 int err, count;
437 for (count = 0; count < 2; count++) {
551 int err, count;
561 for (count = 0; count < 2; count++) {
746 "-c,--channels count of channels in stream\n"