aboutsummaryrefslogtreecommitdiffstats
path: root/al/filter.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-29 20:27:33 -0800
committerChris Robinson <[email protected]>2023-12-29 20:27:33 -0800
commit37171b7d9afd571820bd168fdad596a42bf04561 (patch)
treec51f58839311cbc116e3ff7d086f376d4ccd00f2 /al/filter.h
parentcfab14287405a0d34f6a0fec1336f46415728fcf (diff)
Replace some macros
Diffstat (limited to 'al/filter.h')
-rw-r--r--al/filter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/al/filter.h b/al/filter.h
index 20d5e012..dffe8c6e 100644
--- a/al/filter.h
+++ b/al/filter.h
@@ -13,9 +13,9 @@
#include "almalloc.h"
#include "alnumeric.h"
-#define LOWPASSFREQREF 5000.0f
-#define HIGHPASSFREQREF 250.0f
+inline constexpr float LowPassFreqRef{5000.0f};
+inline constexpr float HighPassFreqRef{250.0f};
template<typename T>
struct FilterTable {
@@ -41,9 +41,9 @@ struct ALfilter {
float Gain{1.0f};
float GainHF{1.0f};
- float HFReference{LOWPASSFREQREF};
+ float HFReference{LowPassFreqRef};
float GainLF{1.0f};
- float LFReference{HIGHPASSFREQREF};
+ float LFReference{HighPassFreqRef};
using TableTypes = std::variant<NullFilterTable,LowpassFilterTable,HighpassFilterTable,
BandpassFilterTable>;