diff options
author | Chris Robinson <[email protected]> | 2018-12-20 03:26:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-20 03:26:46 -0800 |
commit | 8d3f7651c9d188f047a2b2c2ee4e2012b56d9b50 (patch) | |
tree | edd02c0ea598ea4e4591d822201a4f842a65382e /Alc/bformatdec.cpp | |
parent | d18140391ae6a33775493c0ffad309085992ac54 (diff) |
Use std::array in place of some C-style arrays
Diffstat (limited to 'Alc/bformatdec.cpp')
-rw-r--r-- | Alc/bformatdec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp index aeaa89a0..6a149611 100644 --- a/Alc/bformatdec.cpp +++ b/Alc/bformatdec.cpp @@ -51,7 +51,7 @@ constexpr ALfloat Ambi3DDecoderHFScale[MAX_AMBI_COEFFS] = { }; -auto GetAmbiScales(AmbDecScale scaletype) noexcept -> const float(&)[MAX_AMBI_COEFFS] +auto GetAmbiScales(AmbDecScale scaletype) noexcept -> const std::array<float,MAX_AMBI_COEFFS>& { if(scaletype == AmbDecScale::FuMa) return AmbiScale::FromFuMa; if(scaletype == AmbDecScale::SN3D) return AmbiScale::FromSN3D; @@ -130,7 +130,7 @@ void BFormatDec::reset(const AmbDecConf *conf, ALsizei chancount, ALuint srate, mUpSampler[3].Gains[LF_BAND] = 0.0f; } - const float (&coeff_scale)[MAX_AMBI_COEFFS] = GetAmbiScales(conf->CoeffScale); + const std::array<float,MAX_AMBI_COEFFS> &coeff_scale = GetAmbiScales(conf->CoeffScale); const ALsizei coeff_count{periphonic ? MAX_AMBI_COEFFS : MAX_AMBI2D_COEFFS}; mMatrix = MatrixU{}; |