mirror of https://github.com/PCSX2/pcsx2.git
Make a few settings in spu2-x stick under Linux. The whole config section should probably be rewritten, but that's for a later date.
This commit is contained in:
parent
19f153adf1
commit
a1d6cb278f
|
@ -153,6 +153,7 @@ void ReadSettings()
|
|||
|
||||
SndOutLatencyMS = CfgReadInt(L"OUTPUT", L"Latency", 300);
|
||||
SynchMode = CfgReadInt(L"OUTPUT", L"Synch_Mode", 0);
|
||||
numSpeakers = CfgReadInt(L"OUTPUT", L"SpeakerConfiguration", 0);
|
||||
|
||||
#ifdef SPU2X_PORTAUDIO
|
||||
PortaudioOut->ReadSettings();
|
||||
|
@ -205,6 +206,7 @@ void WriteSettings()
|
|||
CfgWriteStr(L"OUTPUT", L"Output_Module", mods[OutputModule]->GetIdent());
|
||||
CfgWriteInt(L"OUTPUT", L"Latency", SndOutLatencyMS);
|
||||
CfgWriteInt(L"OUTPUT", L"Synch_Mode", SynchMode);
|
||||
CfgWriteInt(L"OUTPUT", L"SpeakerConfiguration", numSpeakers);
|
||||
CfgWriteInt(L"DEBUG", L"DelayCycles", delayCycles);
|
||||
|
||||
#ifdef SPU2X_PORTAUDIO
|
||||
|
|
|
@ -245,10 +245,18 @@ void Dialog::SaveValues()
|
|||
{
|
||||
Interpolation = m_inter_select->GetSelection();
|
||||
OutputModule = m_module_select->GetSelection();
|
||||
|
||||
#ifdef SPU2X_PORTAUDIO
|
||||
OutputAPI = m_portaudio_select->GetSelection();
|
||||
wxString p_api(m_portaudio_select->GetStringSelection());
|
||||
if (p_api.Find("ALSA") != wxNOT_FOUND) p_api = "ALSA";
|
||||
if (p_api.Find("OSS") != wxNOT_FOUND) p_api = "OSS";
|
||||
PortaudioOut->SetApiSettings(p_api);
|
||||
#endif
|
||||
|
||||
SdlOutputAPI = m_sdl_select->GetSelection();
|
||||
SDLOut->SetApiSettings(m_sdl_select->GetStringSelection());
|
||||
|
||||
SynchMode = m_sync_select->GetSelection();
|
||||
numSpeakers = m_audio_select->GetSelection();
|
||||
|
||||
|
|
Loading…
Reference in New Issue