]> Repos - portaudio/commitdiff
reset oscillator phase at start of each test cycle so that the onsets sound the same
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 24 Jan 2010 12:35:36 +0000 (12:35 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 24 Jan 2010 12:35:36 +0000 (12:35 +0000)
test/patest_start_stop.c

index 86f8a059b8d8c2c814d17286fa5c058a9a6dbdd8..cf82b6778da72398c90befac171fbb576a68810e 100644 (file)
@@ -143,6 +143,8 @@ int main(void)
 
     for( i=0; i<NUM_LOOPS; i++ )
     {
+        data.left_phase = data.right_phase = 0;
+
         err = Pa_StartStream( stream );
         if( err != paNoError ) goto error;