]> Repos - portaudio/commitdiff
qa-latency: fix printout typos; re-enable checks of default high vs low latency ...
authorgineera <gineera@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 30 May 2013 11:30:28 +0000 (11:30 +0000)
committergineera <gineera@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 30 May 2013 11:30:28 +0000 (11:30 +0000)
qa/paqa_latency.c

index 6142a8016595e5678e0ddf81c62445e0eb4afaeb..389c065687b06c427bbe23e6c4f015f84ff3ebf5 100644 (file)
@@ -255,7 +255,7 @@ static int paqaCheckMultipleSuggested( PaDeviceIndex deviceIndex, int isInput )
     {
         numLoops = 1;
     }
-       
+
     for( i=0; i<numLoops; i++ )
     {   
         if( numLoops == 1 )
@@ -361,15 +361,15 @@ static int paqaVerifyDeviceInfoLatency( void )
             printf("  Output defaultHighOutputLatency = %f seconds\n", pdi->defaultHighOutputLatency);
             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;