From b1185fcc9fef69a355481874880330b70c9f31af Mon Sep 17 00:00:00 2001 From: sletz Date: Fri, 15 Jul 2011 12:25:26 +0000 Subject: [PATCH] Fix compilation of iodelay.cpp. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4489 0c269be4-1314-0410-8aa9-9f06e86f4224 --- tests/iodelay.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/iodelay.cpp b/tests/iodelay.cpp index 924c818b..e6237741 100644 --- a/tests/iodelay.cpp +++ b/tests/iodelay.cpp @@ -49,7 +49,6 @@ public: double del (void) { return _del; } double err (void) { return _err; } -private: double _del; double _err; @@ -232,7 +231,7 @@ int main (int ac, char *av []) #else usleep (250000); #endif - if (mtdm.resolve () < 0) printf ("Signal below threshold...\n"); + if (mtdm.resolve() < 0) printf ("Signal below threshold...\n"); else { jack_nframes_t systemic_latency; @@ -241,12 +240,13 @@ int main (int ac, char *av []) mtdm.invert (); mtdm.resolve (); } - systemic_latency = (jack_nframes_t) floor (mtdm->_del - (capture_latency.max + playback_latency.max)); + 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, + 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"); + if (mtdm._err > 0.2) printf (" ??"); + if (mtdm._inv) printf (" Inv"); printf ("\n"); } }