From cb3e96e75640730b9391f0d2d922eecd9ee2ce79 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Jul 2019 18:56:04 -0700 Subject: Rename Alc to alc --- Alc/bformatdec.h | 62 -------------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 Alc/bformatdec.h (limited to 'Alc/bformatdec.h') diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h deleted file mode 100644 index 06974651..00000000 --- a/Alc/bformatdec.h +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef BFORMATDEC_H -#define BFORMATDEC_H - -#include -#include - -#include "AL/al.h" - -#include "alcmain.h" -#include "almalloc.h" -#include "alspan.h" -#include "ambidefs.h" -#include "filters/splitter.h" -#include "vector.h" - -struct AmbDecConf; - - -using ChannelDec = ALfloat[MAX_AMBI_CHANNELS]; - -class BFormatDec { - static constexpr size_t sHFBand{0}; - static constexpr size_t sLFBand{1}; - static constexpr size_t sNumBands{2}; - - ALuint mEnabled{0u}; /* Bitfield of enabled channels. */ - - union MatrixU { - ALfloat Dual[MAX_OUTPUT_CHANNELS][sNumBands][MAX_AMBI_CHANNELS]; - ALfloat Single[MAX_OUTPUT_CHANNELS][MAX_AMBI_CHANNELS]; - } mMatrix{}; - - /* NOTE: BandSplitter filters are unused with single-band decoding */ - BandSplitter mXOver[MAX_AMBI_CHANNELS]; - - al::vector mSamples; - /* These two alias into Samples */ - FloatBufferLine *mSamplesHF{nullptr}; - FloatBufferLine *mSamplesLF{nullptr}; - - ALuint mNumChannels{0u}; - bool mDualBand{false}; - -public: - BFormatDec(const AmbDecConf *conf, const bool allow_2band, const ALuint inchans, - const ALuint srate, const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]); - BFormatDec(const ALuint 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(const al::span OutBuffer, const FloatBufferLine *InSamples, - 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; - - DEF_NEWDEL(BFormatDec) -}; - -#endif /* BFORMATDEC_H */ -- cgit v1.2.3