aboutsummaryrefslogtreecommitdiffstats
path: root/core/voice_change.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/voice_change.h')
-rw-r--r--core/voice_change.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/core/voice_change.h b/core/voice_change.h
new file mode 100644
index 00000000..ddc6186f
--- /dev/null
+++ b/core/voice_change.h
@@ -0,0 +1,31 @@
+#ifndef VOICE_CHANGE_H
+#define VOICE_CHANGE_H
+
+#include <atomic>
+
+#include "almalloc.h"
+
+struct Voice;
+
+using uint = unsigned int;
+
+
+enum class VChangeState {
+ Reset,
+ Stop,
+ Play,
+ Pause,
+ Restart
+};
+struct VoiceChange {
+ Voice *mOldVoice{nullptr};
+ Voice *mVoice{nullptr};
+ uint mSourceID{0};
+ VChangeState mState{};
+
+ std::atomic<VoiceChange*> mNext{nullptr};
+
+ DEF_NEWDEL(VoiceChange)
+};
+
+#endif /* VOICE_CHANGE_H */