mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
Make the GUI show a translated "No audio output" sound backend string.
This commit is contained in:
@ -970,7 +970,9 @@ void CConfigMain::AudioSettingsChanged(wxCommandEvent& event)
|
||||
VolumeSlider->Enable(SupportsVolumeChanges(WxStrToStr(BackendSelection->GetStringSelection())));
|
||||
Latency->Enable(WxStrToStr(BackendSelection->GetStringSelection()) == BACKEND_OPENAL);
|
||||
DPL2Decoder->Enable(WxStrToStr(BackendSelection->GetStringSelection()) == BACKEND_OPENAL);
|
||||
SConfig::GetInstance().sBackend = WxStrToStr(BackendSelection->GetStringSelection());
|
||||
// Don't save the translated BACKEND_NULLSOUND string
|
||||
SConfig::GetInstance().sBackend = BackendSelection->GetSelection() ?
|
||||
WxStrToStr(BackendSelection->GetStringSelection()) : BACKEND_NULLSOUND;
|
||||
AudioCommon::UpdateSoundStream();
|
||||
break;
|
||||
|
||||
@ -991,7 +993,7 @@ void CConfigMain::AddAudioBackends()
|
||||
for (std::vector<std::string>::const_iterator iter = backends.begin();
|
||||
iter != backends.end(); ++iter)
|
||||
{
|
||||
BackendSelection->Append(StrToWxStr(*iter));
|
||||
BackendSelection->Append(wxGetTranslation(StrToWxStr(*iter)));
|
||||
int num = BackendSelection->
|
||||
FindString(StrToWxStr(SConfig::GetInstance().sBackend));
|
||||
BackendSelection->SetSelection(num);
|
||||
|
Reference in New Issue
Block a user