diff options
author | James Cowgill <jcowgill@debian.org> | 2019-10-30 23:08:35 +0000 |
---|---|---|
committer | James Cowgill <jcowgill@debian.org> | 2019-10-30 23:08:35 +0000 |
commit | 580d203514359a386479a96d1e69704e429974e7 (patch) | |
tree | e4804f71fcbbd229ab4bc63c4b53027a82b0b64b /soundlib/Tables.cpp | |
parent | 3f8fc5dffe02081c55aa8a9fbe4ab090dd831e67 (diff) |
New upstream version 0.4.10
Diffstat (limited to 'soundlib/Tables.cpp')
-rw-r--r-- | soundlib/Tables.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/soundlib/Tables.cpp b/soundlib/Tables.cpp index 3a701b2..fc0f3fd 100644 --- a/soundlib/Tables.cpp +++ b/soundlib/Tables.cpp @@ -765,12 +765,9 @@ void CResampler::InitializeTablesFromScratch(bool force) { initParameterIndependentTables = true; } - #ifdef MODPLUG_TRACKER - if(!StaticTablesInitialized) - { - initParameterIndependentTables = true; - } - #endif // MODPLUG_TRACKER +#ifdef MODPLUG_TRACKER + initParameterIndependentTables = !StaticTablesInitialized; +#endif // MODPLUG_TRACKER MPT_MAYBE_CONSTANT_IF(initParameterIndependentTables) { @@ -802,7 +799,7 @@ void CResampler::InitializeTablesFromScratch(bool force) static const CResampler & GetCachedResampler() { static CResampler s_CachedResampler(true); - return s_CachedResampler; + return s_CachedResampler; } |