]> git.tdb.fi Git - ext/openal.git/blob - core/voice_change.h
Tweak some types to work around an MSVC compile error
[ext/openal.git] / core / voice_change.h
1 #ifndef VOICE_CHANGE_H
2 #define VOICE_CHANGE_H
3
4 #include <atomic>
5
6 #include "almalloc.h"
7
8 struct Voice;
9
10 using uint = unsigned int;
11
12
13 enum class VChangeState {
14     Reset,
15     Stop,
16     Play,
17     Pause,
18     Restart
19 };
20 struct VoiceChange {
21     Voice *mOldVoice{nullptr};
22     Voice *mVoice{nullptr};
23     uint mSourceID{0};
24     VChangeState mState{};
25
26     std::atomic<VoiceChange*> mNext{nullptr};
27
28     DEF_NEWDEL(VoiceChange)
29 };
30
31 #endif /* VOICE_CHANGE_H */