aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-22 11:52:55 -0700
committerChris Robinson <[email protected]>2019-03-22 11:52:55 -0700
commit979013512750f83954d786028f8a419408f490a1 (patch)
treeba7eecc812c580f00ac2011cf873bb0f6c1eb02a
parent8a1b1f4204cf6925c1be43a38739632ba7c29036 (diff)
Add a new EffectStateFactory method to get the default properties
-rw-r--r--OpenAL32/Include/alAuxEffectSlot.h3
-rw-r--r--OpenAL32/alAuxEffectSlot.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h
index 69ebdc43..23484f1f 100644
--- a/OpenAL32/Include/alAuxEffectSlot.h
+++ b/OpenAL32/Include/alAuxEffectSlot.h
@@ -12,6 +12,8 @@
struct ALeffectslot;
+union ALeffectProps;
+
struct EffectTarget {
MixParams *Main;
@@ -40,6 +42,7 @@ struct EffectStateFactory {
virtual ~EffectStateFactory() { }
virtual EffectState *create() = 0;
+ virtual ALeffectProps getDefaultProps() const;
};
diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp
index c6a2a213..c681579c 100644
--- a/OpenAL32/alAuxEffectSlot.cpp
+++ b/OpenAL32/alAuxEffectSlot.cpp
@@ -690,6 +690,10 @@ ALenum InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect
}
+ALeffectProps EffectStateFactory::getDefaultProps() const
+{ return ALeffectProps{}; }
+
+
void EffectState::IncRef() noexcept
{
auto ref = IncrementRef(&mRef);