From a98fffe85600995a324d392939ca4b807e4f6e4c Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 9 Jul 2003 07:30:48 +0000 Subject: [PATCH] removed useless check. --- stepmania/src/arch/Sound/RageSoundDriver_QT1.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_QT1.cpp b/stepmania/src/arch/Sound/RageSoundDriver_QT1.cpp index 1b5df8872b..a4a25f4c8f 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_QT1.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_QT1.cpp @@ -97,15 +97,6 @@ void RageSound_QT1::GetData(SndChannel *chan, SndCommand *cmd_passed) { while (!SOUNDMAN) SDL_Delay(10); LockMutex L(SOUNDMAN->lock); - static bool gettingData=false; - static int recursiveCalls = 0; - if (gettingData) { - LOG->Warn( "GetData() called recursively %D times.", ++recursiveCalls); - if (recursiveCalls >=10) - RageException::Throw("GetData() called recursively too many times."); - } else - recursiveCalls = 0; - gettingData = true; static SoundMixBuffer mix; RageSound_QT1 *P = reinterpret_cast(chan->userInfo); @@ -152,7 +143,6 @@ void RageSound_QT1::GetData(SndChannel *chan, SndCommand *cmd_passed) { cmd.cmd = callBackCmd; cmd.param2 = play_me; SndDoCommand(chan, &cmd, 0); - gettingData=false; } void RageSound_QT1::StartMixing(RageSound *snd) {