voice_change.h 402 B

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