🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
454 B

  1. #ifndef VOICE_CHANGE_H
  2. #define VOICE_CHANGE_H
  3. #include <atomic>
  4. #include "almalloc.h"
  5. struct Voice;
  6. using uint = unsigned int;
  7. enum class VChangeState {
  8. Reset,
  9. Stop,
  10. Play,
  11. Pause,
  12. Restart
  13. };
  14. struct VoiceChange {
  15. Voice *mOldVoice{nullptr};
  16. Voice *mVoice{nullptr};
  17. uint mSourceID{0};
  18. VChangeState mState{};
  19. std::atomic<VoiceChange*> mNext{nullptr};
  20. DEF_NEWDEL(VoiceChange)
  21. };
  22. #endif /* VOICE_CHANGE_H */