Skip to content

Commit

Permalink
Resample all mp3
Browse files Browse the repository at this point in the history
  • Loading branch information
sum2012 authored and anr2me committed Jan 24, 2021
1 parent f9b06d0 commit d5a776d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Core/HLE/sceMp3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,9 @@ 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, reset resampling Frequency 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) {
ctx->decoder->SetResampleFrequency(ctx->freq);
ctx->decoder->SetResampleFrequency(ctx->freq);
}

return hleDelayResult(hleLogSuccessI(ME, 0), "mp3 init", PARSE_DELAY_MS);
Expand Down

0 comments on commit d5a776d

Please sign in to comment.