mirror of https://github.com/axmolengine/axmol.git
fix buffer count wrong
This commit is contained in:
parent
a59fa1d596
commit
707f2c2561
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue