mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 19:53:48 +01:00
Mp3 file is not always have two channels
This commit is contained in:
1 parent
54d4663580
commit
abec329e59
1 file changed
+2
-2
+2
-2
@@ -242,8 +242,8 @@ int sceMp3Decode(u32 mp3, u32 outPcmPtr) {
|
||||
fclose(file);
|
||||
}
|
||||
#endif
|
||||
// 2 bytes per channel and we always two channels per mp3 so it is 2 * 2
|
||||
ctx->mp3SumDecodedSamples += bytesdecoded / 2 * 2;
|
||||
// 2 bytes per channel and we have frame.channels in mp3 source
|
||||
ctx->mp3SumDecodedSamples += bytesdecoded / (2 * frame.channels);
|
||||
|
||||
return bytesdecoded;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user