diff options
author | Chris Robinson <[email protected]> | 2019-07-31 11:05:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-31 11:05:53 -0700 |
commit | 62534f424ae0534927f948fa6cead4bdd9f73745 (patch) | |
tree | 154020d19dfe795ebf74baf394b29d6285422fff /alc/hrtf.cpp | |
parent | 151ff51e7d7b8265cac804f3b754a87924902090 (diff) |
Use float2 where appropriate
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r-- | alc/hrtf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 8130288a..124707c5 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -436,8 +436,8 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALuin for(ALuint i{0u};i < NumChannels;++i) { - auto copy_arr = [](const std::array<double,2> &in) noexcept -> std::array<float,2> - { return std::array<float,2>{{static_cast<float>(in[0]), static_cast<float>(in[1])}}; }; + auto copy_arr = [](const std::array<double,2> &in) noexcept -> float2 + { return float2{{static_cast<float>(in[0]), static_cast<float>(in[1])}}; }; std::transform(tmpres[i].begin(), tmpres[i].end(), state->Chan[i].Coeffs.begin(), copy_arr); } |