PSP2: Use sceDisplayGetRefreshRate to get ideal frame rate

This commit is contained in:
Jeffrey Pfau 2016-08-19 03:30:48 -07:00
parent 6698794366
commit 026f5233db
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,9 @@ void mPSP2Setup(struct mGUIRunner* runner) {
void mPSP2LoadROM(struct mGUIRunner* runner) {
scePowerSetArmClockFrequency(444);
double ratio = GBAAudioCalculateRatio(1, 60.0f / 1.001f, 1);
float rate = 60.0f / 1.001f;
sceDisplayGetRefreshRate(&rate);
double ratio = GBAAudioCalculateRatio(1, rate, 1);
blip_set_rates(runner->core->getAudioChannel(runner->core, 0), runner->core->frequency(runner->core), 48000 * ratio);
blip_set_rates(runner->core->getAudioChannel(runner->core, 1), runner->core->frequency(runner->core), 48000 * ratio);