From c82ef90849b209de4cc694eacb7466c7164d57c9 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 27 Apr 2024 19:25:15 -0500 Subject: [PATCH] SAA1099: disable high-pass filter unnecessary and is the possible cause of issue #1849 --- extern/SAASound/src/SAAConfig.cpp | 6 +++--- extern/SAASound/src/SAAImpl.cpp | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/extern/SAASound/src/SAAConfig.cpp b/extern/SAASound/src/SAAConfig.cpp index c63b2a3a3..496b74058 100644 --- a/extern/SAASound/src/SAAConfig.cpp +++ b/extern/SAASound/src/SAAConfig.cpp @@ -20,7 +20,7 @@ m_bGenerateRegisterLogs(false), m_bGeneratePcmLogs(false), m_bGeneratePcmSeparateChannels(false), m_nBoost(DEFAULT_BOOST), -m_bHighpass(true), +m_bHighpass(false), m_nOversample(DEFAULT_OVERSAMPLE), m_minIni(_T(CONFIG_FILE_PATH)) { @@ -74,7 +74,7 @@ void SAAConfig::ReadConfig() m_bGeneratePcmSeparateChannels = m_minIni.getbool(u8"Debug", u8"PCMSeparateChannels", false); } - m_bHighpass = m_minIni.getbool(u8"Quality", u8"Highpass", true); + m_bHighpass = m_minIni.getbool(u8"Quality", u8"Highpass", false); m_nOversample = m_minIni.geti(u8"Quality", u8"Oversample", DEFAULT_OVERSAMPLE); if (m_nOversample < 1) @@ -110,4 +110,4 @@ t_string SAAConfig::getChannelPcmOutputPath(int i) return filename; } -#endif // USE_CONFIG_FILE \ No newline at end of file +#endif // USE_CONFIG_FILE diff --git a/extern/SAASound/src/SAAImpl.cpp b/extern/SAASound/src/SAAImpl.cpp index 55665b6de..dc445433e 100644 --- a/extern/SAASound/src/SAAImpl.cpp +++ b/extern/SAASound/src/SAAImpl.cpp @@ -187,8 +187,6 @@ void CSAASoundInternal::SetSoundParameters(SAAPARAM uParam) // set filter properties from uParam m_uParam = (m_uParam & ~SAAP_MASK_FILTER) | (uParam & SAAP_MASK_FILTER); - - m_bHighpass=true; } void CSAASoundInternal::SetSampleRate(unsigned int nSampleRate)