aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.h
diff options
context:
space:
mode:
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)