aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-10-21 16:39:21 -0700
committerChris Robinson <[email protected]>2020-10-21 16:39:21 -0700
commit3e62600ecc3c2f1be4da0d3e8166f5c67cc25fed (patch)
treea33bb31c8c8d53f96a2112c7f8edb91a190df5e6 /alc/alu.h
parentb8f5e1f4247e8a1d1ebdbe39dad6b235d6d50daa (diff)
Replace some more macros with constexpr variables
Diffstat (limited to 'alc/alu.h')
-rw-r--r--alc/alu.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/alu.h b/alc/alu.h
index 1d4126be..1d79c4fd 100644
--- a/alc/alu.h
+++ b/alc/alu.h
@@ -26,15 +26,15 @@ using MixerFunc = void(*)(const al::span<const float> InSamples,
extern MixerFunc MixSamples;
-#define GAIN_MIX_MAX 1000.0f /* +60dB */
+constexpr float GainMixMax{1000.0f}; /* +60dB */
-#define GAIN_SILENCE_THRESHOLD 0.00001f /* -100dB */
+constexpr float GainSilenceThreshold{0.00001f}; /* -100dB */
-#define SPEEDOFSOUNDMETRESPERSEC 343.3f
-#define AIRABSORBGAINHF 0.99426f /* -0.05dB */
+constexpr float SpeedOfSoundMetersPerSec{343.3f};
+constexpr float AirAbsorbGainHF{0.99426f}; /* -0.05dB */
-/* Target gain for the reverb decay feedback reaching the decay time. */
-#define REVERB_DECAY_GAIN 0.001f /* -60 dB */
+/** Target gain for the reverb decay feedback reaching the decay time. */
+constexpr float ReverbDecayGain{0.001f}; /* -60 dB */
#define FRACTIONBITS 12
#define FRACTIONONE (1<<FRACTIONBITS)