diff options
author | Chris Robinson <[email protected]> | 2022-02-22 21:23:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-22 21:23:53 -0800 |
commit | 234e55cc3c121bfff28856c452b9540fcf51fce2 (patch) | |
tree | 7385b15b78aa35799b732e203f89d9413231b9a1 /core | |
parent | d22699d9bd098a2800b8434a22d9e59209065de2 (diff) |
Explicitly define AmbDecConf's destructor
GCC complains it can't inline the destructor because it's "unlikely" to be
called and would bloat code size, despite being implicitly defined. Technically
accurate, but rather annoying since it's not explicitly called or defined.
Diffstat (limited to 'core')
-rw-r--r-- | core/ambdec.cpp | 3 | ||||
-rw-r--r-- | core/ambdec.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/ambdec.cpp b/core/ambdec.cpp index 30048051..0df22bc9 100644 --- a/core/ambdec.cpp +++ b/core/ambdec.cpp @@ -179,6 +179,9 @@ al::optional<std::string> load_ambdec_matrix(float (&gains)[MaxAmbiOrder+1], } // namespace +AmbDecConf::~AmbDecConf() = default; + + al::optional<std::string> AmbDecConf::load(const char *fname) noexcept { al::ifstream f{fname}; diff --git a/core/ambdec.h b/core/ambdec.h index b6aa1225..e1bcde26 100644 --- a/core/ambdec.h +++ b/core/ambdec.h @@ -46,6 +46,8 @@ struct AmbDecConf { float HFOrderGain[MaxAmbiOrder+1]{}; CoeffArray *HFMatrix; + ~AmbDecConf(); + al::optional<std::string> load(const char *fname) noexcept; }; |