forked from teamnwah/openmw-tes3coop
Avoid another loop for decoding audio
This commit is contained in:
parent
3829bbfeca
commit
6bc526b74d
1 changed files with 2 additions and 1 deletions
|
@ -401,7 +401,7 @@ public:
|
|||
|
||||
while(total < len)
|
||||
{
|
||||
while(mFramePos >= mFrameSize)
|
||||
if(mFramePos >= mFrameSize)
|
||||
{
|
||||
/* We have already sent all our data; get more */
|
||||
mFrameSize = audio_decode_frame(mFrame);
|
||||
|
@ -413,6 +413,7 @@ public:
|
|||
|
||||
mFramePos = std::min<ssize_t>(mFrameSize, sample_skip);
|
||||
sample_skip -= mFramePos;
|
||||
continue;
|
||||
}
|
||||
|
||||
size_t len1 = len - total;
|
||||
|
|
Loading…
Reference in a new issue