SAA1099: disable high-pass filter

unnecessary and is the possible cause of issue #1849
This commit is contained in:
tildearrow 2024-04-27 19:25:15 -05:00
parent ea9c483510
commit c82ef90849
2 changed files with 3 additions and 5 deletions

View file

@ -20,7 +20,7 @@ m_bGenerateRegisterLogs(false),
m_bGeneratePcmLogs(false), m_bGeneratePcmLogs(false),
m_bGeneratePcmSeparateChannels(false), m_bGeneratePcmSeparateChannels(false),
m_nBoost(DEFAULT_BOOST), m_nBoost(DEFAULT_BOOST),
m_bHighpass(true), m_bHighpass(false),
m_nOversample(DEFAULT_OVERSAMPLE), m_nOversample(DEFAULT_OVERSAMPLE),
m_minIni(_T(CONFIG_FILE_PATH)) m_minIni(_T(CONFIG_FILE_PATH))
{ {
@ -74,7 +74,7 @@ void SAAConfig::ReadConfig()
m_bGeneratePcmSeparateChannels = m_minIni.getbool(u8"Debug", u8"PCMSeparateChannels", false); 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); m_nOversample = m_minIni.geti(u8"Quality", u8"Oversample", DEFAULT_OVERSAMPLE);
if (m_nOversample < 1) if (m_nOversample < 1)
@ -110,4 +110,4 @@ t_string SAAConfig::getChannelPcmOutputPath(int i)
return filename; return filename;
} }
#endif // USE_CONFIG_FILE #endif // USE_CONFIG_FILE

View file

@ -187,8 +187,6 @@ void CSAASoundInternal::SetSoundParameters(SAAPARAM uParam)
// set filter properties from uParam // set filter properties from uParam
m_uParam = (m_uParam & ~SAAP_MASK_FILTER) | (uParam & SAAP_MASK_FILTER); m_uParam = (m_uParam & ~SAAP_MASK_FILTER) | (uParam & SAAP_MASK_FILTER);
m_bHighpass=true;
} }
void CSAASoundInternal::SetSampleRate(unsigned int nSampleRate) void CSAASoundInternal::SetSampleRate(unsigned int nSampleRate)