From 5dbbd8ad3468acccbb44da10015d16da2e3a4008 Mon Sep 17 00:00:00 2001 From: philburk Date: Fri, 29 Mar 2002 21:23:53 +0000 Subject: [PATCH] Change doubles to floats to improve type consistency. --- pa_tests/patest_maxsines.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.43.0