mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-16 05:51:41 +00:00
Make the GUI show a translated "No audio output" sound backend string.
This commit is contained in:
parent
1dd1ebb8bd
commit
3fdc46877a
27 changed files with 401 additions and 267 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue