Lines Matching refs:latency
281 void showlatency(size_t latency) in showlatency() argument
284 latency *= 2; in showlatency()
285 d = (double)latency / (double)rate; in showlatency()
286 …printf("Trying latency %li frames, %.3fus, %.6fms (%.4fHz)\n", (long)latency, d * 1000000, d * 100… in showlatency()
497 int err, latency, morehelp; in main() local
581 latency = latency_min - 4; in main()
619 if (setparams(phandle, chandle, &latency) < 0) in main()
621 showlatency(latency); in main()
626 if (snd_pcm_format_set_silence(format, buffer, latency*channels) < 0) { in main()
630 if (writebuf(phandle, buffer, latency, &frames_out) < 0) { in main()
634 if (writebuf(phandle, buffer, latency, &frames_out) < 0) { in main()
659 if ((r = readbuf(chandle, buffer, latency, &frames_in, &in_max)) < 0) in main()