From 0fe9a9535e7ae900a98cbb8064e9854f52d6b158 Mon Sep 17 00:00:00 2001 From: RedDevilus Date: Thu, 15 Oct 2020 01:21:21 +0200 Subject: [PATCH] SPU2: Change default of latency slider Linux: 300 to 100 (which should be fine for everyone. Windows: Change the steps to start from 3 and increment on higher numbers instead of 0.5 steps which is just stupid to be that granular. --- pcsx2/SPU2/Linux/Config.cpp | 4 ++-- pcsx2/SPU2/Windows/Config.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2/SPU2/Linux/Config.cpp b/pcsx2/SPU2/Linux/Config.cpp index 5d85bedf74..248f0f21ae 100644 --- a/pcsx2/SPU2/Linux/Config.cpp +++ b/pcsx2/SPU2/Linux/Config.cpp @@ -64,7 +64,7 @@ bool _visual_debug_enabled = false; // windows only feature // OUTPUT u32 OutputModule = 0; -int SndOutLatencyMS = 300; +int SndOutLatencyMS = 100; int SynchMode = 0; // Time Stretch, Async or Disabled #ifdef SPU2X_PORTAUDIO u32 OutputAPI = 0; @@ -147,7 +147,7 @@ void ReadSettings() #endif #endif - SndOutLatencyMS = CfgReadInt(L"OUTPUT", L"Latency", 300); + SndOutLatencyMS = CfgReadInt(L"OUTPUT", L"Latency", 100); SynchMode = CfgReadInt(L"OUTPUT", L"Synch_Mode", 0); numSpeakers = CfgReadInt(L"OUTPUT", L"SpeakerConfiguration", 0); diff --git a/pcsx2/SPU2/Windows/Config.cpp b/pcsx2/SPU2/Windows/Config.cpp index 2e02787173..9bd4f7ff43 100644 --- a/pcsx2/SPU2/Windows/Config.cpp +++ b/pcsx2/SPU2/Windows/Config.cpp @@ -262,7 +262,7 @@ BOOL CALLBACK ConfigProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) double minlat = (SynchMode == 0) ? LATENCY_MIN_TS : LATENCY_MIN; int minexp = (int)(pow(minlat + 1, 1.0 / 3.0) * 128.0); int maxexp = (int)(pow((double)LATENCY_MAX + 2, 1.0 / 3.0) * 128.0); - INIT_SLIDER(IDC_LATENCY_SLIDER, minexp, maxexp, 200, 42, 1); + INIT_SLIDER(IDC_LATENCY_SLIDER, minexp, maxexp, 200, 13, 15); SendDialogMsg(hWnd, IDC_LATENCY_SLIDER, TBM_SETPOS, TRUE, (int)((pow((double)SndOutLatencyMS, 1.0 / 3.0) * 128.0) + 1)); swprintf_s(temp, L"%d ms (avg)", SndOutLatencyMS);