From c5e90ed6c7878178d92aef372d67ed12d126bfc0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 19 May 2020 12:15:57 -0700 Subject: Use an enum for FamCount --- alc/hrtf.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alc/hrtf.cpp') diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 89e07efc..7f951f35 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -277,9 +277,7 @@ void GetHrtfCoeffs(const HrtfStore *Hrtf, float elevation, float azimuth, float std::unique_ptr DirectHrtfState::Create(size_t num_chans) -{ - return std::unique_ptr{new (FamCount{num_chans}) DirectHrtfState{num_chans}}; -} +{ return std::unique_ptr{new(FamCount(num_chans)) DirectHrtfState{num_chans}}; } void DirectHrtfState::build(const HrtfStore *Hrtf, const al::span AmbiPoints, const float (*AmbiMatrix)[MAX_AMBI_CHANNELS], -- cgit v1.2.3