aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-02-07 00:30:05 -0800
committerChris Robinson <[email protected]>2023-02-07 00:30:05 -0800
commitba0f592715e7a0101bed4c2491c624db8915002d (patch)
tree447499eae6e876d607fb535fc759ba886852d69d
parentda845ddd9c35a1e1fcff03ea342636ae4bb8018b (diff)
Rename the bsinc table variables
-rw-r--r--alc/alu.cpp4
-rw-r--r--core/bsinc_defs.h4
-rw-r--r--core/bsinc_tables.cpp4
-rw-r--r--core/bsinc_tables.h4
4 files changed, 9 insertions, 7 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 45f518ee..c0b7cc2f 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 f2958231..01bd3c29 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 a81167d2..693645f4 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 f52cda66..aca4b274 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 */