diff options
author | Chris Robinson <[email protected]> | 2021-04-25 14:29:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-04-25 14:29:21 -0700 |
commit | 8d09d03ed363ab1735b1933588d8242ba85ddf10 (patch) | |
tree | 515b4149211d29b04f7076ee943bed6bb62d0a90 /al/event.cpp | |
parent | 0fe38c053d8dd827e774fbe0aef121e7aa0a0f28 (diff) |
Move async_event.h to core
Diffstat (limited to 'al/event.cpp')
-rw-r--r-- | al/event.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
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<ALsizei>(msg.length()), msg.c_str(), context->mEventParam); |