Experimental audiosync settings
This commit is contained in:
parent
78c2a0895f
commit
9d497a50f1
1 changed files with 23 additions and 0 deletions
|
@ -82,6 +82,29 @@ void RetroArchPlayer::start() {
|
|||
// test this. in jamma-1a it was 1920x1080... which is uh, wrong?
|
||||
retroArchIni.setCustomSetting("custom_viewport_width", "1920");
|
||||
retroArchIni.setCustomSetting("custom_viewport_height", "1080");
|
||||
|
||||
|
||||
std::string audioSync = findCustomSetting("cgaAudioSync", romName);
|
||||
if (!audioSync.empty()) {
|
||||
retroArchIni.setCustomSetting("audio_driver", "alsa");
|
||||
retroArchIni.setCustomSetting("audio_resampler", "nearest");
|
||||
retroArchIni.setCustomSetting("audio_out_rate", "48000");
|
||||
if (audioSync == "off") {
|
||||
retroArchIni.setCustomSetting("audio_sync", "false");
|
||||
} else {
|
||||
retroArchIni.setCustomSetting("audio_sync", "true");
|
||||
}
|
||||
}
|
||||
|
||||
std::string videoSync = findCustomSetting("cgaVideoSync", romName);
|
||||
if (!videoSync.empty()) {
|
||||
if (videoSync != "on") {
|
||||
retroArchIni.setCustomSetting("video_refresh_rate", videoSync);
|
||||
}
|
||||
retroArchIni.setCustomSetting("video_swap_interval", "1");
|
||||
retroArchIni.setCustomSetting("video_smooth", "true");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!rotate.empty() && allowRotation == "true") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue