]> Repos - portaudio/commitdiff
Added more printfs and sped up test.
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 25 Feb 2002 17:19:24 +0000 (17:19 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 25 Feb 2002 17:19:24 +0000 (17:19 +0000)
pa_tests/patest_toomanysines.c

index d2c70202196c757d72cfead43f281ad91fa36f2e..f78df8c3d67d812514752931cc7d2ff93356e227 100644 (file)
@@ -134,7 +134,7 @@ int main(void)
     do
     {
         data.numSines++;
-        Pa_Sleep( 200 );
+        Pa_Sleep( 100 );
 
         load = Pa_GetCPULoad( stream );
         printf("numSines = %d, CPU load = %f\n", data.numSines, load );
@@ -150,13 +150,16 @@ int main(void)
         printf("STRESSING: numSines = %d, CPU load = %f\n", data.numSines, load );
     }
     
-    printf("Suffer for 10 seconds.\n");
-    Pa_Sleep( 10000 );
+    printf("Suffer for 5 seconds.\n");
+    Pa_Sleep( 5000 );
     
+    printf("Stop stream.\n");
     err = Pa_StopStream( stream );
     if( err != paNoError ) goto error;
+    
     err = Pa_CloseStream( stream );
     if( err != paNoError ) goto error;
+    
     Pa_Terminate();
     printf("Test finished.\n");
     return err;