diff options
author | Chris Robinson <[email protected]> | 2023-01-17 21:56:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-17 21:56:29 -0800 |
commit | 4171f9460fb7c6f634690d772f67af5d83fbdb64 (patch) | |
tree | f460d0e9f8c49f138d961467627e8092164e937f /core | |
parent | c5d42ceb107fafd0583c49aedc1c63f3beb35663 (diff) |
Make a variable for a reused value
Diffstat (limited to 'core')
-rw-r--r-- | core/mixer/defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/mixer/defs.h b/core/mixer/defs.h index 9071cb9b..80d9fc7f 100644 --- a/core/mixer/defs.h +++ b/core/mixer/defs.h @@ -19,6 +19,7 @@ using float2 = std::array<float,2>; constexpr int MixerFracBits{16}; constexpr int MixerFracOne{1 << MixerFracBits}; constexpr int MixerFracMask{MixerFracOne - 1}; +constexpr int MixerFracHalf{MixerFracOne >> 1}; constexpr float GainSilenceThreshold{0.00001f}; /* -100dB */ |