From 83bb63cf86dc9f3ff2ed0a11e5ab769909ff99be Mon Sep 17 00:00:00 2001 From: philburk Date: Fri, 22 Feb 2002 21:46:18 +0000 Subject: [PATCH] Fix messages, init toggle variable. --- pa_tests/patest_leftright.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pa_tests/patest_leftright.c b/pa_tests/patest_leftright.c index 7e19b17..d718aef 100644 --- a/pa_tests/patest_leftright.c +++ b/pa_tests/patest_leftright.c @@ -98,6 +98,7 @@ static int patestCallback( void *inputBuffer, void *outputBuffer, return finished; } + /*******************************************************************/ int main(void); int main(void) @@ -107,17 +108,21 @@ int main(void) paTestData data; int i; int timeout; - printf("PortAudio Test: output sine wave. SR = %d, BufSize = %d\n", SAMPLE_RATE, FRAMES_PER_BUFFER); + + printf("Play different tone sine waves that alternate between left and right channel.\n"); + printf("The low tone should be on the left channel.\n"); + /* initialise sinusoidal wavetable */ for( i=0; i 0 ) { - printf("Countdown = %d, Toggle = %d\n", data.countDown, data.toggle ); - fflush( stdout ); - Pa_Sleep( 1000/4 ); + Pa_Sleep( 300 ); timeout -= 1; } -- 2.43.0