diff options
author | Chris Robinson <[email protected]> | 2020-05-19 12:15:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-19 12:15:57 -0700 |
commit | c5e90ed6c7878178d92aef372d67ed12d126bfc0 (patch) | |
tree | d4761b076ce4b14ed0094dea641fdb75dc7b7e0f /alc/hrtf.cpp | |
parent | 825206bfa2b59ae124cc8fb34c5b668f8a682224 (diff) |
Use an enum for FamCount
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r-- | alc/hrtf.cpp | 4 |
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], |