fix buffer count wrong

This commit is contained in:
dumganhar 2011-10-19 17:15:21 +08:00
parent a59fa1d596
commit 707f2c2561
1 changed files with 2 additions and 1 deletions

View File

@ -421,6 +421,8 @@ result CCAudioOut::FeedBuffer (void)
__iAllPcmPos += __bufferSize;
}
__iUsedBufferCount++;
if (__iAllPcmPos < __iAllPcmBufferSize)
{
__buffWriteCnt ++;
@ -428,7 +430,6 @@ result CCAudioOut::FeedBuffer (void)
{
__buffWriteCnt = 0;
}
__iUsedBufferCount++;
}
else
{