diff --git a/alc/alu.cpp b/alc/alu.cpp index 45f518eec7..c0b7cc2f66 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -277,11 +277,11 @@ ResamplerFunc PrepareResampler(Resampler resampler, uint increment, InterpState break; case Resampler::FastBSinc12: case Resampler::BSinc12: - BsincPrepare(increment, &state->bsinc, &bsinc12); + BsincPrepare(increment, &state->bsinc, &gBSinc12); break; case Resampler::FastBSinc24: case Resampler::BSinc24: - BsincPrepare(increment, &state->bsinc, &bsinc24); + BsincPrepare(increment, &state->bsinc, &gBSinc24); break; } return SelectResampler(resampler, increment); diff --git a/core/bsinc_defs.h b/core/bsinc_defs.h index f29582318c..01bd3c298a 100644 --- a/core/bsinc_defs.h +++ b/core/bsinc_defs.h @@ -1,7 +1,9 @@ #ifndef CORE_BSINC_DEFS_H #define CORE_BSINC_DEFS_H -/* The number of distinct scale and phase intervals within the filter table. */ +/* The number of distinct scale and phase intervals within the bsinc filter + * tables. + */ constexpr unsigned int BSincScaleBits{4}; constexpr unsigned int BSincScaleCount{1 << BSincScaleBits}; constexpr unsigned int BSincPhaseBits{5}; diff --git a/core/bsinc_tables.cpp b/core/bsinc_tables.cpp index a81167d23e..693645f438 100644 --- a/core/bsinc_tables.cpp +++ b/core/bsinc_tables.cpp @@ -291,5 +291,5 @@ constexpr BSincTable GenerateBSincTable(const T &filter) } // namespace -const BSincTable bsinc12{GenerateBSincTable(bsinc12_filter)}; -const BSincTable bsinc24{GenerateBSincTable(bsinc24_filter)}; +const BSincTable gBSinc12{GenerateBSincTable(bsinc12_filter)}; +const BSincTable gBSinc24{GenerateBSincTable(bsinc24_filter)}; diff --git a/core/bsinc_tables.h b/core/bsinc_tables.h index f52cda6640..aca4b27442 100644 --- a/core/bsinc_tables.h +++ b/core/bsinc_tables.h @@ -11,7 +11,7 @@ struct BSincTable { const float *Tab; }; -extern const BSincTable bsinc12; -extern const BSincTable bsinc24; +extern const BSincTable gBSinc12; +extern const BSincTable gBSinc24; #endif /* CORE_BSINC_TABLES_H */