Merge pull request #13959 from sum2012/mp3_minor

Resample mp3 in 32000Hz
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-01-24 09:21:57 +01:00
commit a8a60d3e17
1 file changed
+2 -3
+2 -3
View File
@@ -432,12 +432,11 @@ static int sceMp3Init(u32 mp3) {
ctx->Version = versionBits;
// for mp3, if required freq is 48000, reset resampling Frequency to 48000 seems get better sound quality (e.g. Miku Custom BGM)
// for mp3, if required freq is 48000,32000, reset resampling Frequency to 48000,32000 seems get better sound quality (e.g. Miku Custom BGM,Hanayaka Nari Wa ga Ichizoku)
// TODO: Isn't this backwards? Woudln't we want to read as 48kHz and resample to 44.1kHz?
if (ctx->freq == 48000) {
if (ctx->freq == 48000 || ctx->freq == 32000) {
ctx->decoder->SetResampleFrequency(ctx->freq);
}
return hleDelayResult(hleLogSuccessI(ME, 0), "mp3 init", PARSE_DELAY_MS);
}