From e62eec4e60d53e3f7f42b679bc0167d441aac323 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Tue, 20 May 2008 14:32:21 +0000 Subject: [PATCH] Small change --- src/win32/OpenAL.cpp | 2 +- src/win32/XAudio2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/OpenAL.cpp b/src/win32/OpenAL.cpp index 96c20d87..1e645543 100644 --- a/src/win32/OpenAL.cpp +++ b/src/win32/OpenAL.cpp @@ -294,7 +294,7 @@ void OpenAL::write() // we only want to know about it when we are emulating at full speed or faster: if( ( theApp.throttle >= 100 ) || ( theApp.throttle == 0 ) ) { if( systemVerbose & VERBOSE_SOUNDOUTPUT ) { - static int i = 0; + static unsigned int i = 0; log( "OpenAL: Buffers were not refilled fast enough (i=%i)\n", i++ ); } } diff --git a/src/win32/XAudio2.cpp b/src/win32/XAudio2.cpp index 153cb923..bf46d917 100644 --- a/src/win32/XAudio2.cpp +++ b/src/win32/XAudio2.cpp @@ -254,7 +254,6 @@ void XAudio2_Output::write() ASSERT( vState.BuffersQueued <= NBUFFERS ); if( vState.BuffersQueued < NBUFFERS ) { - // there is at least one free buffer #ifdef _DEBUG if( vState.BuffersQueued == 0 ) { // buffers ran dry @@ -264,6 +263,7 @@ void XAudio2_Output::write() } } #endif + // there is at least one free buffer break; } else { // the maximum number of buffers is currently queued