Use an array of 2 instead of a pair
[openal-soft.git] / core / voice_change.h
blobe97c48f331108227217c3bef15a3a2bb45e12813
1 #ifndef VOICE_CHANGE_H
2 #define VOICE_CHANGE_H
4 #include <atomic>
6 struct Voice;
8 using uint = unsigned int;
11 enum class VChangeState {
12 Reset,
13 Stop,
14 Play,
15 Pause,
16 Restart
18 struct VoiceChange {
19 Voice *mOldVoice{nullptr};
20 Voice *mVoice{nullptr};
21 uint mSourceID{0};
22 VChangeState mState{};
24 std::atomic<VoiceChange*> mNext{nullptr};
27 #endif /* VOICE_CHANGE_H */