zita-alsa-pcmi(1)

Okay bestie, let's talk about zita-alsa-pcmi(1) from the General Commands Manual πŸ’– It's giving tool energy, and the main character is alsa_delay 🧚

✨ NAME ✨

alsa_delay β€” measure round-trip latency of a soundcard πŸŽ€

πŸ’… SYNOPSIS πŸ’…

alsa_delay playdev captdev fsamp frsize nfrags

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this tool is literally built to measure the round-trip latency of a soundcard 😭 To set it up, start the program and connect everything like this:

  alsa_delay -> playdev -> cable from soundcard output to input -> captdev -> alsa_delay

alsa_delay should be able to measure the round-trip latency with an accuracy of around 1/1000 of a sample 🀌 The assumption is that the latency is more or less independent of frequency, and that the cable between soundcard output and input has virtually zero latency 🫢

🌸 ARGUMENTS 🌸

  • playdev β€” the ALSA playback device, like hw:0 πŸ”Š
  • captdev β€” the ALSA capture device, like hw:0 🎀
  • fsamp β€” the sample rate, like 48000 ✨
  • frsize β€” the period size, like 256 πŸ“
  • nfrags β€” the number of fragments, like 2 🌈

πŸŽ€ EXAMPLES πŸŽ€

This will measure and display the round-trip latency of soundcard hw:0 using 48kHz samplerate, and 10 fragments each 2048 samples. Literally iconic πŸ‘‘

alsa_delay hw:0 hw:0 48000 2048 10

🧚 NOTES 🧚

alsa_delay is a port of jack_delay (by the same author) to ALSA πŸ¦‹ Same author, same energy, new platform, periodt πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

zita-alsa-pcmi was written by Fons Adriaensen <fons@linuxaudio.org> πŸ’…

This manual page was written by IOhannes m zmoelnig <zmoelnig@iem.at> for the Debian project (but may be used by others) 🫢


And that's the tea β˜• The source is zita-alsa-pcmi, dated July 2013, and it's still giving πŸ’–πŸŒˆ