From b084adf6253c7233f9bc7c0bedae47a33232ab45 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 21 Jun 2004 20:08:02 +0000 Subject: [PATCH] don't spam the log with lots of 1- and 2-call underruns --- stepmania/src/arch/Sound/RageSoundDriver_CA.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp index 1979fc39da..ba232158a1 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp @@ -291,7 +291,8 @@ OSStatus RageSound_CA::OverloadListener(AudioDeviceID inDevice, Output += ssprintf( "%.3f ", g_fLastMixTimes[pos] ); } - LOG->Warn( "Audio overload. Last IOProc time: %f IOProc calls: %i (%s)", + if( g_iNumIOProcCalls >= 100 ) + LOG->Warn( "Audio overload. Last IOProc time: %f IOProc calls: %i (%s)", g_fLastIOProcTime, g_iNumIOProcCalls, Output.c_str() ); g_iNumIOProcCalls = 0; return noErr;