Add option to turn off the resampler if native audio sample rate is 44100Hz (sometimes in WASAPI, always in DSOUND)

This commit is contained in:
Henrik Rydgard 2015-01-31 12:20:45 +01:00
parent 24c78ed2f4
commit 39bbc008f4
2 changed files with 2 additions and 1 deletions

View File

@ -342,7 +342,7 @@ void GameSettingsScreen::CreateViews() {
#ifdef _WIN32
static const char *backend[] = { "Auto", "WASAPI (fast)", "DirectSound (compatible)" };
PopupMultiChoice *audioBackend = audioSettings->Add(new PopupMultiChoice(&g_Config.iAudioBackend, a->T("Audio backend"), backend, 0, ARRAY_SIZE(backend), a, screenManager()));
PopupMultiChoice *audioBackend = audioSettings->Add(new PopupMultiChoice(&g_Config.iAudioBackend, a->T("Audio backend", "Audio backend (change requires restart)"), backend, 0, ARRAY_SIZE(backend), a, screenManager()));
audioBackend->SetEnabledPtr(&g_Config.bEnableSound);
#endif

View File

@ -97,6 +97,7 @@ private:
UI::EventReturn OnImmersiveModeChange(UI::EventParams &e);
UI::EventReturn OnAdhocGuides(UI::EventParams &e);
UI::EventReturn OnAudioBackend(UI::EventParams &e);
// Temporaries to convert bools to int settings
bool cap60FPS_;