jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.3KB

  1. .TH JACK_IODELAY "1" "!DATE!" "!VERSION!"
  2. .SH NAME
  3. jack_iodelay \- JACK toolkit client to measure roundtrip latency
  4. .SH SYNOPSIS
  5. .B jack_iodelay
  6. .SH DESCRIPTION
  7. .B jack_iodelay
  8. will create one input and one output port, and then
  9. measures the latency (signal delay) between them. For this to work,
  10. the output port must be connected to its input port. The measurement
  11. is accurate to a resolution of greater than 1 sample.
  12. .PP
  13. The expected use is to connect jack_iodelay's output port to a
  14. hardware playback port, then use a physical loopback cable from the
  15. corresponding hardware output connector to an input connector, and to
  16. connect that corresponding hardware capture port to jack_iodelay's
  17. input port. This creates a roundtrip that goes through any
  18. analog-to-digital or digital-converters that are present in the audio
  19. hardware.
  20. .PP
  21. Although the hardware loopback latency is the expected use, it is also
  22. possible to use jack_iodelay to measure the latency along any fully
  23. connected signal path, such as those involving other JACK clients.
  24. .PP
  25. Once jack_iodelay completes its measurement it will print the total
  26. latency it has detected. This will include the JACK period length in
  27. addition to any other latency in the signal path. It will continue to
  28. print the value every 0.5 seconds or so so that if you wish you can
  29. vary aspects of the signal path to see their effect on the measured
  30. latency.
  31. .PP
  32. If no incoming signal is detected from the input port, jack_iodelay
  33. will print
  34. .PP
  35. \fT Signal below threshold... .\fR
  36. .PP
  37. every second until this changes (e.g. until you establish the correct connections).
  38. .PP
  39. To use the value measured by jack_iodelay with the -I and -O arguments
  40. of a JACK backend (also called Input Latency and Output Latency in the
  41. setup dialog of qjackctl), you must subtract the JACK period size from
  42. the result. Then, if you believe that the latency is equally
  43. distributed between the input and output parts of your audio hardware
  44. (extremely likely), divide the result by two and use that for input
  45. and/or output latency value. Doing this measurement will enable JACK
  46. clients that use the JACK latency API to accurately position/delay
  47. audio to keep signals synchronized even when there are inherent delays
  48. in the end-to-end signal pathways.
  49. .SH AUTHOR
  50. Originally written in C++ by Fons Adriensen, ported to C by Torben Hohn.