aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-23 00:01:38 -0800
committerChris Robinson <[email protected]>2019-02-23 00:01:38 -0800
commit3683e31662f187ef539ab65134176b96f9c40b3e (patch)
tree0f7800726f356c32129f04ac4bf523a2dc0efde2 /Alc/bformatdec.h
parent317206e8f3312fb84a61b3681303fb5f8f92af7d (diff)
Constify some parameters and remove an explicit loop
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index 29699abf..7dc283f7 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -36,15 +36,20 @@ class BFormatDec {
ALboolean mDualBand;
public:
- void reset(const AmbDecConf *conf, bool allow_2band, ALsizei inchans, ALuint srate, const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]);
+ void reset(const AmbDecConf *conf, const bool allow_2band, const ALsizei inchans,
+ const ALuint srate, const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]);
- void reset(const ALsizei inchans, const ALsizei chancount, const ChannelDec (&chancoeffs)[MAX_OUTPUT_CHANNELS], const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]);
+ void reset(const ALsizei inchans, const ALsizei chancount,
+ const ChannelDec (&chancoeffs)[MAX_OUTPUT_CHANNELS],
+ const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]);
/* Decodes the ambisonic input to the given output channels. */
- void process(ALfloat (*OutBuffer)[BUFFERSIZE], const ALsizei OutChannels, const ALfloat (*InSamples)[BUFFERSIZE], const ALsizei SamplesToDo);
+ void process(ALfloat (*OutBuffer)[BUFFERSIZE], const ALsizei OutChannels,
+ const ALfloat (*InSamples)[BUFFERSIZE], const ALsizei SamplesToDo);
/* Retrieves per-order HF scaling factors for "upsampling" ambisonic data. */
- static std::array<ALfloat,MAX_AMBI_ORDER+1> GetHFOrderScales(const ALsizei in_order, const ALsizei out_order) noexcept;
+ static std::array<ALfloat,MAX_AMBI_ORDER+1> GetHFOrderScales(const ALsizei in_order,
+ const ALsizei out_order) noexcept;
DEF_NEWDEL(BFormatDec)
};