From 9942c8c6433ba94b5a85d18c9d12c2329656657d Mon Sep 17 00:00:00 2001 From: spacy51 Date: Tue, 20 May 2008 14:32:21 +0000 Subject: [PATCH] Small change git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@523 a31d4220-a93d-0410-bf67-fe4944624d44 --- 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