From 8082b07db4bc7421ccba12df64c6abc43a9380b5 Mon Sep 17 00:00:00 2001 From: gineera Date: Thu, 30 May 2013 11:30:28 +0000 Subject: [PATCH] qa-latency: fix printout typos; re-enable checks of default high vs low latency - but allow them to be equal; remove rogue tab. --- qa/paqa_latency.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qa/paqa_latency.c b/qa/paqa_latency.c index 6142a80..389c065 100644 --- a/qa/paqa_latency.c +++ b/qa/paqa_latency.c @@ -255,7 +255,7 @@ static int paqaCheckMultipleSuggested( PaDeviceIndex deviceIndex, int isInput ) { numLoops = 1; } - + for( i=0; idefaultHighOutputLatency); QA_ASSERT_TRUE( "defaultLowOutputLatency should be > 0", (pdi->defaultLowOutputLatency > 0.0) ); QA_ASSERT_TRUE( "defaultHighOutputLatency should be > 0", (pdi->defaultHighOutputLatency > 0.0) ); - //QA_ASSERT_TRUE( "defaultHighOutputLatency should be > Low", (pdi->defaultHighOutputLatency > pdi->defaultLowOutputLatency) ); + QA_ASSERT_TRUE( "defaultHighOutputLatency should be >= Low", (pdi->defaultHighOutputLatency >= pdi->defaultLowOutputLatency) ); } if( pdi->maxInputChannels > 0 ) { - printf(" Input defaultLowOutputLatency = %f seconds\n", pdi->defaultLowInputLatency); - printf(" Input defaultHighOutputLatency = %f seconds\n", pdi->defaultHighInputLatency); - QA_ASSERT_TRUE( "defaultLowOutputLatency should be > 0", (pdi->defaultLowInputLatency > 0.0) ); - QA_ASSERT_TRUE( "defaultHighOutputLatency should be > 0", (pdi->defaultHighInputLatency > 0.0) ); - //QA_ASSERT_TRUE( "defaultHighOutputLatency should be > Low", (pdi->defaultHighInputLatency > pdi->defaultLowInputLatency) ); + printf(" Input defaultLowInputLatency = %f seconds\n", pdi->defaultLowInputLatency); + printf(" Input defaultHighInputLatency = %f seconds\n", pdi->defaultHighInputLatency); + QA_ASSERT_TRUE( "defaultLowInputLatency should be > 0", (pdi->defaultLowInputLatency > 0.0) ); + QA_ASSERT_TRUE( "defaultHighInputLatency should be > 0", (pdi->defaultHighInputLatency > 0.0) ); + QA_ASSERT_TRUE( "defaultHighInputLatency should be >= Low", (pdi->defaultHighInputLatency >= pdi->defaultLowInputLatency) ); } } return 0; -- 2.43.0