mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-25 03:10:31 +00:00
Respect looping in sceMp3Decode().
This commit is contained in:
parent
16fa7bf494
commit
1bb66ea7eb
@ -1447,7 +1447,11 @@ int sceMp3Decode(u32 mp3, u32 outPcmPtr)
|
||||
|
||||
// Nothing to decode
|
||||
if(ctx->mp3BufPendingSize == 0 || ctx->mp3StreamPosition >= ctx->mp3StreamEnd) {
|
||||
return 0;
|
||||
if (ctx->mp3LoopNum == 0) {
|
||||
return 0;
|
||||
} else if (ctx->mp3LoopNum > 0) {
|
||||
--ctx->mp3LoopNum;
|
||||
}
|
||||
}
|
||||
|
||||
Memory::Memset(ctx->mp3PcmBuf, 0, ctx->mp3PcmBufSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user