aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-11 20:40:37 -0800
committerChris Robinson <[email protected]>2018-11-11 20:40:37 -0800
commit5848dab92d3172ea2f50e0d82f9628fb20c62bd9 (patch)
tree35923bb0c224580d5d7b974d05550af04e9df983 /Alc
parentf8bda31c72e073cfc36cc4b42574347657817c54 (diff)
Make AmbDecConf::load noexcept
To ease the ovewrhead of destructors that call C (non-noexcept) functions.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ambdec.cpp2
-rw-r--r--Alc/ambdec.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ambdec.cpp b/Alc/ambdec.cpp
index b3978551..c408a2af 100644
--- a/Alc/ambdec.cpp
+++ b/Alc/ambdec.cpp
@@ -202,7 +202,7 @@ bool load_ambdec_matrix(ALfloat *gains, ALfloat (*matrix)[MAX_AMBI_COEFFS], ALsi
} // namespace
-int AmbDecConf::load(const char *fname)
+int AmbDecConf::load(const char *fname) noexcept
{
al::ifstream f{fname};
if(!f.is_open())
diff --git a/Alc/ambdec.h b/Alc/ambdec.h
index d6d154fb..33e74d36 100644
--- a/Alc/ambdec.h
+++ b/Alc/ambdec.h
@@ -39,7 +39,7 @@ struct AmbDecConf {
ALfloat HFOrderGain[MAX_AMBI_ORDER+1];
ALfloat HFMatrix[MAX_OUTPUT_CHANNELS][MAX_AMBI_COEFFS];
- int load(const char *fname);
+ int load(const char *fname) noexcept;
};
#endif /* AMBDEC_H */