aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-20 22:47:24 -0800
committerChris Robinson <[email protected]>2018-11-20 22:47:24 -0800
commitd64d64d4a5d62a90b861ab104fd3b787bfd7256a (patch)
treedc51cd806ce8f0b1a884d944068657a157f389f3 /Alc/panning.cpp
parentdc8ef8264a458282ebad15a6a1b4027cc139cc59 (diff)
Use an enum class for AmbiLayout/Norm settings
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r--Alc/panning.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp
index aface673..806486a3 100644
--- a/Alc/panning.cpp
+++ b/Alc/panning.cpp
@@ -513,10 +513,10 @@ static void InitPanning(ALCdevice *device)
if(device->FmtChans == DevFmtAmbi3D)
{
const char *devname = device->DeviceName.c_str();
- const ALsizei *acnmap = (device->mAmbiLayout == AmbiLayout_FuMa) ? FuMa2ACN : ACN2ACN;
- const ALfloat *n3dscale = (device->mAmbiScale == AmbiNorm_FuMa) ? FuMa2N3DScale :
- (device->mAmbiScale == AmbiNorm_SN3D) ? SN3D2N3DScale :
- /*(device->mAmbiScale == AmbiNorm_N3D) ?*/ N3D2N3DScale;
+ const ALsizei *acnmap = (device->mAmbiLayout == AmbiLayout::FuMa) ? FuMa2ACN : ACN2ACN;
+ const ALfloat *n3dscale = (device->mAmbiScale == AmbiNorm::FuMa) ? FuMa2N3DScale :
+ (device->mAmbiScale == AmbiNorm::SN3D) ? SN3D2N3DScale :
+ /*(device->mAmbiScale == AmbiNorm::N3D) ?*/ N3D2N3DScale;
ALfloat nfc_delay = 0.0f;
count = (device->mAmbiOrder == 3) ? 16 :