From 3683e31662f187ef539ab65134176b96f9c40b3e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 23 Feb 2019 00:01:38 -0800 Subject: Constify some parameters and remove an explicit loop --- Alc/bformatdec.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Alc/bformatdec.h') 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 GetHFOrderScales(const ALsizei in_order, const ALsizei out_order) noexcept; + static std::array GetHFOrderScales(const ALsizei in_order, + const ALsizei out_order) noexcept; DEF_NEWDEL(BFormatDec) }; -- cgit v1.2.3