diff options
author | Chris Robinson <[email protected]> | 2018-12-08 01:32:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-08 02:15:00 -0800 |
commit | 7695afe0cb3a01ac32f4c04bedb57b3225effd3a (patch) | |
tree | ee3f2ad9770e3623d7dd00f865fa105d34cf5d96 /Alc/panning.cpp | |
parent | a603cc906f6fb50a2636350c0aa52bfddea55661 (diff) |
Clean up some more loops
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r-- | Alc/panning.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index 3b98de5b..2758a937 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -601,7 +601,7 @@ static void InitPanning(ALCdevice *device) device->RealOut.NumChannels = 0; } -static void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei speakermap[MAX_OUTPUT_CHANNELS]) +static void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei (&speakermap)[MAX_OUTPUT_CHANNELS]) { ChannelMap chanmap[MAX_OUTPUT_CHANNELS]; const ALfloat *coeff_scale = N3D2N3DScale; @@ -686,10 +686,10 @@ static void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const A InitDistanceComp(device, conf, speakermap); } -static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei speakermap[MAX_OUTPUT_CHANNELS]) +static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei (&speakermap)[MAX_OUTPUT_CHANNELS]) { - static const ALsizei chans_per_order2d[MAX_AMBI_ORDER+1] = { 1, 2, 2, 2 }; - static const ALsizei chans_per_order3d[MAX_AMBI_ORDER+1] = { 1, 3, 5, 7 }; + static constexpr ALsizei chans_per_order2d[MAX_AMBI_ORDER+1] = { 1, 2, 2, 2 }; + static constexpr ALsizei chans_per_order3d[MAX_AMBI_ORDER+1] = { 1, 3, 5, 7 }; ALfloat avg_dist; ALsizei count; ALsizei i; |