mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Some audio fixes (no more mp3 clicking and popping?) (issue #217)
This commit is contained in:
@@ -129,6 +129,7 @@ namespace lullaby
|
||||
continue;
|
||||
case MPG123_NEED_MORE:
|
||||
{
|
||||
size += numbytes;
|
||||
int v = feed(8192);
|
||||
|
||||
switch(v)
|
||||
|
||||
@@ -193,14 +193,14 @@ namespace lullaby
|
||||
else if(result <= OV_EREAD)
|
||||
return -1;
|
||||
else if(result == 0)
|
||||
{
|
||||
eof = true;
|
||||
break;
|
||||
}
|
||||
else if(result > 0)
|
||||
size += result;
|
||||
}
|
||||
|
||||
if(oggFile.dataSize - oggFile.dataRead == 0)
|
||||
eof = true;
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user