From: gineera Date: Thu, 30 May 2013 11:30:28 +0000 (+0000) Subject: qa-latency: fix printout typos; re-enable checks of default high vs low latency ... X-Git-Tag: pa_stable_v19_20140130_r1919~18 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=8082b07db4bc7421ccba12df64c6abc43a9380b5;p=portaudio qa-latency: fix printout typos; re-enable checks of default high vs low latency - but allow them to be equal; remove rogue tab. --- 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;