Merge pull request #5288 from MerryMage/android-stretch
Android: Add audio stretch setting
This commit is contained in:
commit
6997515ec1
|
@ -163,6 +163,7 @@ public final class SettingsFragmentPresenter
|
|||
Setting overclock = null;
|
||||
Setting continuousScan = null;
|
||||
Setting wiimoteSpeaker = null;
|
||||
Setting audioStretch = null;
|
||||
|
||||
if (!mSettings.get(SettingsFile.SETTINGS_DOLPHIN).isEmpty())
|
||||
{
|
||||
|
@ -172,6 +173,7 @@ public final class SettingsFragmentPresenter
|
|||
overclock = mSettings.get(SettingsFile.SETTINGS_DOLPHIN).get(SettingsFile.SECTION_CORE).getSetting(SettingsFile.KEY_OVERCLOCK_PERCENT);
|
||||
continuousScan = mSettings.get(SettingsFile.SETTINGS_DOLPHIN).get(SettingsFile.SECTION_CORE).getSetting(SettingsFile.KEY_WIIMOTE_SCAN);
|
||||
wiimoteSpeaker = mSettings.get(SettingsFile.SETTINGS_DOLPHIN).get(SettingsFile.SECTION_CORE).getSetting(SettingsFile.KEY_WIIMOTE_SPEAKER);
|
||||
audioStretch = mSettings.get(SettingsFile.SETTINGS_DOLPHIN).get(SettingsFile.SECTION_CORE).getSetting(SettingsFile.KEY_AUDIO_STRETCH);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -207,6 +209,7 @@ public final class SettingsFragmentPresenter
|
|||
sl.add(new SliderSetting(SettingsFile.KEY_OVERCLOCK_PERCENT, SettingsFile.SECTION_CORE, SettingsFile.SETTINGS_DOLPHIN, R.string.overclock_title, 0, 400, "%", 100, overclock));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_WIIMOTE_SCAN, SettingsFile.SECTION_CORE, SettingsFile.SETTINGS_DOLPHIN, R.string.wiimote_scanning, R.string.wiimote_scanning_description, true, continuousScan));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_WIIMOTE_SPEAKER, SettingsFile.SECTION_CORE, SettingsFile.SETTINGS_DOLPHIN, R.string.wiimote_speaker, R.string.wiimote_speaker_description, true, wiimoteSpeaker));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_AUDIO_STRETCH, SettingsFile.SECTION_CORE, SettingsFile.SETTINGS_DOLPHIN, R.string.audio_stretch, R.string.audio_stretch_description, false, audioStretch));
|
||||
}
|
||||
|
||||
private void addGcPadSettings(ArrayList<SettingsItem> sl)
|
||||
|
|
|
@ -53,6 +53,7 @@ public final class SettingsFile
|
|||
public static final String KEY_OVERCLOCK_ENABLE = "OverclockEnable";
|
||||
public static final String KEY_OVERCLOCK_PERCENT = "Overclock";
|
||||
public static final String KEY_VIDEO_BACKEND = "GFXBackend";
|
||||
public static final String KEY_AUDIO_STRETCH = "AudioStretch";
|
||||
|
||||
public static final String KEY_SHOW_FPS = "ShowFPS";
|
||||
public static final String KEY_INTERNAL_RES = "EFBScale";
|
||||
|
|
|
@ -121,7 +121,8 @@
|
|||
<string name="wiimote_scanning_description">Leave this on if you are using a DolphinBar for real Wiimote support.</string>
|
||||
<string name="wiimote_speaker">Wii Remote Speaker</string>
|
||||
<string name="wiimote_speaker_description">Enable sound output through the speaker on a real Wiimote (DolphinBar required).</string>
|
||||
|
||||
<string name="audio_stretch">Audio Stretching</string>
|
||||
<string name="audio_stretch_description">Stretches audio to reduce stuttering. Increases latency.</string>
|
||||
|
||||
<!-- Video Preference Fragment -->
|
||||
<string name="video_backend">Video Backend</string>
|
||||
|
|
Loading…
Reference in New Issue