aboutsummaryrefslogtreecommitdiffstats
path: root/core/ambdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-25 09:26:24 -0800
committerChris Robinson <[email protected]>2020-12-25 09:26:24 -0800
commitf6e29ce5bb88dda99d359e6c3fc5b84b4ae1e56b (patch)
tree8db92cb1075b0fd7eea63ee0ca6c0b72415b5f8d /core/ambdec.h
parent78f73a42770f436218fc40b85ff804b301201df1 (diff)
Return an optional for an error
Diffstat (limited to 'core/ambdec.h')
-rw-r--r--core/ambdec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ambdec.h b/core/ambdec.h
index 6b7394da..b6aa1225 100644
--- a/core/ambdec.h
+++ b/core/ambdec.h
@@ -5,6 +5,7 @@
#include <memory>
#include <string>
+#include "aloptional.h"
#include "core/ambidefs.h"
/* Helpers to read .ambdec configuration files. */
@@ -45,7 +46,7 @@ struct AmbDecConf {
float HFOrderGain[MaxAmbiOrder+1]{};
CoeffArray *HFMatrix;
- int load(const char *fname) noexcept;
+ al::optional<std::string> load(const char *fname) noexcept;
};
#endif /* CORE_AMBDEC_H */