Use 32040hz sample rate in libretro to avoid resampling.

This commit is contained in:
Brandon Wright 2016-12-10 10:52:05 -06:00
parent cf846e0c56
commit bbeb13c2f0
1 changed files with 28 additions and 28 deletions

View File

@ -192,7 +192,7 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
info->geometry.max_width = MAX_SNES_WIDTH; info->geometry.max_width = MAX_SNES_WIDTH;
info->geometry.max_height = MAX_SNES_HEIGHT; info->geometry.max_height = MAX_SNES_HEIGHT;
info->geometry.aspect_ratio = 4.0f / 3.0f; info->geometry.aspect_ratio = 4.0f / 3.0f;
info->timing.sample_rate = 32040.5; info->timing.sample_rate = 32040;
info->timing.fps = retro_get_region() == RETRO_REGION_NTSC ? 21477272.0 / 357366.0 : 21281370.0 / 425568.0; info->timing.fps = retro_get_region() == RETRO_REGION_NTSC ? 21477272.0 / 357366.0 : 21281370.0 / 425568.0;
} }
@ -462,8 +462,8 @@ void retro_init()
Settings.FrameTimeNTSC = 16667; Settings.FrameTimeNTSC = 16667;
Settings.SixteenBitSound = TRUE; Settings.SixteenBitSound = TRUE;
Settings.Stereo = TRUE; Settings.Stereo = TRUE;
Settings.SoundPlaybackRate = 32000; Settings.SoundPlaybackRate = 32040;
Settings.SoundInputRate = 32000; Settings.SoundInputRate = 32040;
Settings.SupportHiRes = TRUE; Settings.SupportHiRes = TRUE;
Settings.Transparency = TRUE; Settings.Transparency = TRUE;
Settings.AutoDisplayMessages = TRUE; Settings.AutoDisplayMessages = TRUE;