aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-19 12:15:57 -0700
committerChris Robinson <[email protected]>2020-05-19 12:15:57 -0700
commitc5e90ed6c7878178d92aef372d67ed12d126bfc0 (patch)
treed4761b076ce4b14ed0094dea641fdb75dc7b7e0f /alc/hrtf.cpp
parent825206bfa2b59ae124cc8fb34c5b668f8a682224 (diff)
Use an enum for FamCount
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r--alc/hrtf.cpp4
1 files changed, 1 insertions, 3 deletions
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> DirectHrtfState::Create(size_t num_chans)
-{
- return std::unique_ptr<DirectHrtfState>{new (FamCount{num_chans}) DirectHrtfState{num_chans}};
-}
+{ return std::unique_ptr<DirectHrtfState>{new(FamCount(num_chans)) DirectHrtfState{num_chans}}; }
void DirectHrtfState::build(const HrtfStore *Hrtf, const al::span<const AngularPoint> AmbiPoints,
const float (*AmbiMatrix)[MAX_AMBI_CHANNELS],