Lines Matching defs:frames
107 snd_pcm_sframes_t frames;
328 frames = snd_pcm_writei(handle_p, buffer_p, PERIOD);
329 if (frames < 0) {
330 printf("snd_pcm_writei failed: %s\n", snd_strerror(frames));
333 frame_count_p += frames;
355 frames = snd_pcm_wait(handle_c, -1);
356 if (frames < 0) {
357 printf("snd_pcm_wait failed: %s\n", snd_strerror(frames));
361 frames = snd_pcm_readi(handle_c, buffer_c, PERIOD);
362 if (frames < 0) {
363 printf("snd_pcm_readi failed: %s\n", snd_strerror(frames));
366 frame_count_c += frames;
402 frames = snd_pcm_writei(handle_p, buffer_p, PERIOD);
403 if (frames < 0) {
404 printf("snd_pcm_writei failed: %s\n", snd_strerror(frames));
408 frame_count_p += frames;