aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.h
diff options
context:
space:
mode:
Diffstat (limited to 'al/auxeffectslot.h')
-rw-r--r--al/auxeffectslot.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h
index 79373f45..3977b650 100644
--- a/al/auxeffectslot.h
+++ b/al/auxeffectslot.h
@@ -40,6 +40,12 @@ struct ALeffectslotProps {
};
+enum class SlotState : ALenum {
+ Initial = AL_INITIAL,
+ Playing = AL_PLAYING,
+ Stopped = AL_STOPPED,
+};
+
struct ALeffectslot {
float Gain{1.0f};
bool AuxSendAuto{true};
@@ -56,6 +62,8 @@ struct ALeffectslot {
std::atomic_flag PropsClean;
+ SlotState mState{SlotState::Initial};
+
RefCount ref{0u};
struct {