From: philburk Date: Fri, 29 Mar 2002 21:23:53 +0000 (+0000) Subject: Change doubles to floats to improve type consistency. X-Git-Tag: V18~29 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=5dbbd8ad3468acccbb44da10015d16da2e3a4008;p=portaudio Change doubles to floats to improve type consistency. --- diff --git a/pa_tests/patest_maxsines.c b/pa_tests/patest_maxsines.c index 4a5c26b..7745be8 100644 --- a/pa_tests/patest_maxsines.c +++ b/pa_tests/patest_maxsines.c @@ -59,7 +59,7 @@ typedef struct paTestData { int numSines; float sine[TABLE_SIZE + 1]; /* add one for guard point for interpolation */ - double phases[MAX_SINES]; + float phases[MAX_SINES]; } paTestData; @@ -105,8 +105,8 @@ static int patestCallback( void *inputBuffer, void *outputBuffer, for( i=0; inumSines; j++ ) { /* Advance phase of next oscillator. */ @@ -117,7 +117,7 @@ static int patestCallback( void *inputBuffer, void *outputBuffer, output += LookupSine(data, phase); data->phases[j] = phase; - phaseInc *= 1.02; + phaseInc *= 1.02f; if( phaseInc > MAX_PHASE_INC ) phaseInc = MIN_PHASE_INC; }