diff options
author | Chris Robinson <[email protected]> | 2020-12-16 01:18:11 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-16 01:40:15 -0800 |
commit | c96b50fb657f6760636becab70dbbdaa1bfb2974 (patch) | |
tree | 81fa749a7a1fbc8333531ebf08a7fe01807abfc4 /alc/voice.cpp | |
parent | 5ad28f8cbaa52f3f6bf4c4cdbfbdbeb3087020e1 (diff) |
Use a separate enum for the VoiceChange state
Diffstat (limited to 'alc/voice.cpp')
-rw-r--r-- | alc/voice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp index 04ca51f3..6c00a6a2 100644 --- a/alc/voice.cpp +++ b/alc/voice.cpp @@ -60,6 +60,7 @@ #include "ringbuffer.h" #include "threads.h" #include "vector.h" +#include "voice_change.h" struct CTag; #ifdef HAVE_SSE @@ -184,7 +185,7 @@ void SendSourceStoppedEvent(ALCcontext *context, uint id) AsyncEvent *evt{::new(evt_vec.first.buf) AsyncEvent{EventType_SourceStateChange}}; evt->u.srcstate.id = id; - evt->u.srcstate.state = AL_STOPPED; + evt->u.srcstate.state = VChangeState::Stop; ring->writeAdvance(1); } |