Browse Source

make the printed output of jack_iodelay more useful to actual users

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4486 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.121.3
paul 14 years ago
parent
commit
54bc9f0dde
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      tools/iodelay.c

+ 6
- 1
tools/iodelay.c View File

@@ -237,12 +237,17 @@ int main (int ac, char *av [])
if (mtdm_resolve (mtdm) < 0) printf ("Signal below threshold...\n");
else
{
jack_nframes_t systemic_latency;

if (mtdm->_err > 0.3)
{
mtdm_invert ( mtdm );
mtdm_resolve ( mtdm );
}
printf ("%10.3lf frames %10.3lf ms", mtdm->_del, mtdm->_del * t);
systemic_latency = (jack_nframes_t) floor (mtdm->_del - (capture_latency.max + playback_latency.max));

printf ("%10.3lf frames %10.3lf ms total roundtrip latency\n\textra loopback latency: %u frames\n\tuse %u for the backend arguments -I and -O", mtdm->_del, mtdm->_del * t,
systemic_latency, systemic_latency/2);
if (mtdm->_err > 0.2) printf (" ??");
if (mtdm->_inv) printf (" Inv");
printf ("\n");


Loading…
Cancel
Save