XAudio2 will now output a warning to the log window, when the buffers ran dry. Debug build only.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@474 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2008-04-05 01:49:15 +00:00
parent c3641f314d
commit ec3d5d9c8a
1 changed files with 7 additions and 0 deletions

View File

@ -255,6 +255,13 @@ void XAudio2_Output::write()
if( vState.BuffersQueued < NBUFFERS ) {
// there is at least one free buffer
#ifdef _DEBUG
if( vState.BuffersQueued == 0 ) {
// buffers ran dry
static int i = 0;
log( "XAudio2: Buffers were not refilled fast enough (%i)\n", i++ );
}
#endif
break;
} else {
// the maximum number of buffers is currently queued