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:
parent
c3641f314d
commit
ec3d5d9c8a
|
@ -255,6 +255,13 @@ void XAudio2_Output::write()
|
||||||
|
|
||||||
if( vState.BuffersQueued < NBUFFERS ) {
|
if( vState.BuffersQueued < NBUFFERS ) {
|
||||||
// there is at least one free buffer
|
// 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;
|
break;
|
||||||
} else {
|
} else {
|
||||||
// the maximum number of buffers is currently queued
|
// the maximum number of buffers is currently queued
|
||||||
|
|
Loading…
Reference in New Issue