aboutsummaryrefslogtreecommitdiffstats
path: root/core/context.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-16 17:48:33 -0800
committerChris Robinson <[email protected]>2023-12-16 17:48:33 -0800
commitbc83c874ff15b29fdab9b6c0bf40b268345b3026 (patch)
tree41691ecf41423d015726c334987df70bdf9b5396 /core/context.h
parent4fb33be2b4cb548b4116ee4124ba3d8d2bcecb82 (diff)
Remove DEF_NEWDEL
C++17 provides alignment-aware allocators for us, so we don't need to use our own to make sure classes/structs are properly aligned.
Diffstat (limited to 'core/context.h')
-rw-r--r--core/context.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/context.h b/core/context.h
index 15897ff3..0b830205 100644
--- a/core/context.h
+++ b/core/context.h
@@ -27,9 +27,9 @@ struct VoiceChange;
struct VoicePropsItem;
-constexpr float SpeedOfSoundMetersPerSec{343.3f};
+inline constexpr float SpeedOfSoundMetersPerSec{343.3f};
-constexpr float AirAbsorbGainHF{0.99426f}; /* -0.05dB */
+inline constexpr float AirAbsorbGainHF{0.99426f}; /* -0.05dB */
enum class DistanceModel : unsigned char {
Disable,
@@ -57,8 +57,6 @@ struct ContextProps {
DistanceModel mDistanceModel;
std::atomic<ContextProps*> next;
-
- DEF_NEWDEL(ContextProps)
};
struct ContextParams {