aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/effects/base.h')
-rw-r--r--alc/effects/base.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/alc/effects/base.h b/alc/effects/base.h
index 5d77e904..76ead78f 100644
--- a/alc/effects/base.h
+++ b/alc/effects/base.h
@@ -4,6 +4,7 @@
#include <cstddef>
#include "alcmain.h"
+#include "alexcpt.h"
#include "almalloc.h"
#include "alspan.h"
#include "atomic.h"
@@ -125,6 +126,19 @@ union EffectProps {
};
+class effect_exception final : public al::base_exception {
+public:
+ [[gnu::format(printf, 3, 4)]]
+ effect_exception(ALenum code, const char *msg, ...) : base_exception{code}
+ {
+ va_list args;
+ va_start(args, msg);
+ setMessage(msg, args);
+ va_end(args);
+ }
+};
+
+
struct EffectVtable {
void (*const setParami)(EffectProps *props, ALCcontext *context, ALenum param, int val);
void (*const setParamiv)(EffectProps *props, ALCcontext *context, ALenum param, const int *vals);