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.
master
Chris Robinson 2022-02-22 21:23:53 -08:00
parent d22699d9bd
commit 234e55cc3c
2 changed files with 5 additions and 0 deletions

View File

@ -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};

View File

@ -46,6 +46,8 @@ struct AmbDecConf {
float HFOrderGain[MaxAmbiOrder+1]{};
CoeffArray *HFMatrix;
~AmbDecConf();
al::optional<std::string> load(const char *fname) noexcept;
};