From 8d09d03ed363ab1735b1933588d8242ba85ddf10 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Apr 2021 14:29:21 -0700 Subject: Move async_event.h to core --- al/event.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'al/event.cpp') diff --git a/al/event.cpp b/al/event.cpp index a5d7be38..0bba4280 100644 --- a/al/event.cpp +++ b/al/event.cpp @@ -20,7 +20,7 @@ #include "albyte.h" #include "alcontext.h" #include "almalloc.h" -#include "async_event.h" +#include "core/async_event.h" #include "core/except.h" #include "core/logging.h" #include "effects/base.h" @@ -75,25 +75,22 @@ static int EventThread(ALCcontext *context) msg += " state has changed to "; switch(evt.u.srcstate.state) { - case VChangeState::Reset: + case AsyncEvent::SrcState::Reset: msg += "AL_INITIAL"; state = AL_INITIAL; break; - case VChangeState::Stop: + case AsyncEvent::SrcState::Stop: msg += "AL_STOPPED"; state = AL_STOPPED; break; - case VChangeState::Play: + case AsyncEvent::SrcState::Play: msg += "AL_PLAYING"; state = AL_PLAYING; break; - case VChangeState::Pause: + case AsyncEvent::SrcState::Pause: msg += "AL_PAUSED"; state = AL_PAUSED; break; - /* Shouldn't happen */ - case VChangeState::Restart: - break; } context->mEventCb(AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT, evt.u.srcstate.id, state, static_cast(msg.length()), msg.c_str(), context->mEventParam); -- cgit v1.2.3