diff options
author | Chris Robinson <[email protected]> | 2020-09-01 05:46:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-09-01 05:46:19 -0700 |
commit | a6aefeccd8c515d376f2074a545de9c9d8c5cbb9 (patch) | |
tree | 6b9252a12644718258ccf789e37b39aae2aa60e5 /alc/alu.cpp | |
parent | 02e51c0525507dd0bc59629851449d4d5ad97223 (diff) |
Use enum class for a couple enums
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index d8368d04..978f6d62 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -876,7 +876,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con auto calc_coeffs = [xpos,ypos,zpos](RenderMode mode) { - if(mode != StereoPair) + if(mode != RenderMode::Pairwise) return CalcDirectionCoeffs({xpos, ypos, zpos}, 0.0f); /* Clamp Y, in case rounding errors caused it to end up outside @@ -1015,7 +1015,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con } } } - else if(Device->mRenderMode == HrtfRender) + else if(Device->mRenderMode == RenderMode::Hrtf) { /* Full HRTF rendering. Skip the virtual channels and render to the * real outputs. @@ -1123,7 +1123,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con */ auto calc_coeffs = [xpos,ypos,zpos,Spread](RenderMode mode) { - if(mode != StereoPair) + if(mode != RenderMode::Pairwise) return CalcDirectionCoeffs({xpos, ypos, zpos}, Spread); const float ev{std::asin(clampf(ypos, -1.0f, 1.0f))}; const float az{std::atan2(xpos, -zpos)}; @@ -1183,7 +1183,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con continue; } - const auto coeffs = CalcAngleCoeffs((Device->mRenderMode == StereoPair) + const auto coeffs = CalcAngleCoeffs((Device->mRenderMode == RenderMode::Pairwise) ? ScaleAzimuthFront(chans[c].angle, 3.0f) : chans[c].angle, chans[c].elevation, Spread); |