diff options
author | Chris Robinson <[email protected]> | 2020-12-25 06:30:47 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-25 06:30:47 -0800 |
commit | 20820fd01beb265722d8521ad725c3c479800273 (patch) | |
tree | a015e542f7a39b1c9945f995e4b5ea43f05ae1d3 /alc/ambdec.h | |
parent | fe9ec157fd0ea647452c4894209c4016fffac682 (diff) |
Move the ambdec loader to core
Diffstat (limited to 'alc/ambdec.h')
-rw-r--r-- | alc/ambdec.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/alc/ambdec.h b/alc/ambdec.h deleted file mode 100644 index c96ded5b..00000000 --- a/alc/ambdec.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef AMBDEC_H -#define AMBDEC_H - -#include <array> -#include <string> - -#include "core/ambidefs.h" -#include "vector.h" - -/* Helpers to read .ambdec configuration files. */ - -enum class AmbDecScale { - N3D, - SN3D, - FuMa, -}; -struct AmbDecConf { - std::string Description; - int Version{0}; /* Must be 3 */ - - unsigned int ChanMask{0u}; - unsigned int FreqBands{0u}; /* Must be 1 or 2 */ - AmbDecScale CoeffScale{}; - - float XOverFreq{0.0f}; - float XOverRatio{0.0f}; - - struct SpeakerConf { - std::string Name; - float Distance{0.0f}; - float Azimuth{0.0f}; - float Elevation{0.0f}; - std::string Connection; - }; - al::vector<SpeakerConf> Speakers; - - using CoeffArray = std::array<float,MaxAmbiChannels>; - /* Unused when FreqBands == 1 */ - float LFOrderGain[MaxAmbiOrder+1]{}; - al::vector<CoeffArray> LFMatrix; - - float HFOrderGain[MaxAmbiOrder+1]{}; - al::vector<CoeffArray> HFMatrix; - - int load(const char *fname) noexcept; -}; - -#endif /* AMBDEC_H */ |