aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/null.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/null.cpp')
-rw-r--r--Alc/effects/null.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp
index 6c9e3008..0e9c982d 100644
--- a/Alc/effects/null.cpp
+++ b/Alc/effects/null.cpp
@@ -11,6 +11,8 @@
#include "alError.h"
+namespace {
+
struct ALnullState final : public EffectState {
ALnullState();
~ALnullState() override;
@@ -59,12 +61,22 @@ void ALnullState::process(ALsizei /*samplesToDo*/, const ALfloat (*RESTRICT /*sa
struct NullStateFactory final : public EffectStateFactory {
EffectState *create() override;
+ ALeffectProps getDefaultProps() const noexcept override;
};
-/* Creates ALeffectState objects of the appropriate type. */
+/* Creates EffectState objects of the appropriate type. */
EffectState *NullStateFactory::create()
{ return new ALnullState{}; }
+/* Returns an ALeffectProps initialized with this effect's default properties. */
+ALeffectProps NullStateFactory::getDefaultProps() const noexcept
+{
+ ALeffectProps props{};
+ return props;
+}
+
+} // namespace
+
EffectStateFactory *NullStateFactory_getFactory()
{
static NullStateFactory NullFactory{};