diff options
author | Chris Robinson <[email protected]> | 2019-07-29 16:49:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-29 16:49:56 -0700 |
commit | c2de0782cfec62d6a1c3fe2d409d0f64528ae5f7 (patch) | |
tree | 70026954eac53c95337fb8cd3f500f5b805d731d /al/event.cpp | |
parent | 76d87330ec7c34efeee86654db4c6ed405810de2 (diff) |
Minor formatting fixes
Diffstat (limited to 'al/event.cpp')
-rw-r--r-- | al/event.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/al/event.cpp b/al/event.cpp index 44d825c6..ae2825d0 100644 --- a/al/event.cpp +++ b/al/event.cpp @@ -55,7 +55,7 @@ static int EventThread(ALCcontext *context) RingBuffer *ring_; ~EventAutoDestructor() { - al::destroy_at(&evt_); + al::destroy_at(std::addressof(evt_)); ring_->readAdvance(1); } } _{evt, ring}; @@ -84,8 +84,7 @@ static int EventThread(ALCcontext *context) (evt.u.srcstate.state==AL_STOPPED) ? "AL_STOPPED" : "<unknown>"; context->EventCb(AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT, evt.u.srcstate.id, evt.u.srcstate.state, static_cast<ALsizei>(msg.length()), msg.c_str(), - context->EventParam - ); + context->EventParam); } else if(evt.EnumType == EventType_BufferCompleted) { @@ -96,14 +95,12 @@ static int EventThread(ALCcontext *context) else msg += " buffers completed"; context->EventCb(AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT, evt.u.bufcomp.id, evt.u.bufcomp.count, static_cast<ALsizei>(msg.length()), msg.c_str(), - context->EventParam - ); + context->EventParam); } else if((enabledevts&evt.EnumType) == evt.EnumType) context->EventCb(evt.u.user.type, evt.u.user.id, evt.u.user.param, static_cast<ALsizei>(strlen(evt.u.user.msg)), evt.u.user.msg, - context->EventParam - ); + context->EventParam); } while(evt_data.len != 0); } return 0; |