From 9b68e25fc80a206a5ca2e39fc8d52a7107cb4586 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 26 Mar 2005 05:05:24 +0000 Subject: [PATCH] it is an int --- stepmania/src/arch/Sound/RageSoundDriver_CA.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp index e6d84da5d6..731894a6df 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp @@ -30,7 +30,7 @@ typedef CAStreamBasicDescription Desc; static float g_fLastIOProcTime = 0; static const int NUM_MIX_TIMES = 16; static float g_fLastMixTimes[NUM_MIX_TIMES]; -static int g_fLastMixTimePos = 0; +static int g_iLastMixTimePos = 0; static int g_iNumIOProcCalls = 0; static CString FormatToString( int fmt ) @@ -196,9 +196,9 @@ OSStatus RageSound_CA::GetData(AudioDeviceID inDevice, int16_t buffer[dataPackets * (kBytesPerPacket >> 1)]; This->Mix(buffer, dataPackets, decodePos, now); - g_fLastMixTimes[g_fLastMixTimePos] = tm2.GetDeltaTime(); - ++g_fLastMixTimePos; - wrap(g_fLastMixTimePos, NUM_MIX_TIMES); + g_fLastMixTimes[g_iLastMixTimePos] = tm2.GetDeltaTime(); + ++g_iLastMixTimePos; + wrap(g_iLastMixTimePos, NUM_MIX_TIMES); AudioConverterConvertBuffer(This->mConverter, dataPackets * kBytesPerPacket, buffer, &buf.mDataByteSize, buf.mData); @@ -219,7 +219,7 @@ OSStatus RageSound_CA::OverloadListener(AudioDeviceID inDevice, CString Output; for( int i = NUM_MIX_TIMES-1; i >= 0; --i ) { - int pos = (g_fLastMixTimePos+i) % NUM_MIX_TIMES; + int pos = (g_iLastMixTimePos+i) % NUM_MIX_TIMES; Output += ssprintf( "%.3f ", g_fLastMixTimes[pos] ); }