diff options
author | Chris Robinson <[email protected]> | 2022-03-26 05:28:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-03-26 05:28:46 -0700 |
commit | e53013a549e175777c288066d4d1e7900c8670cc (patch) | |
tree | 974c458625d58a8a5ea797f25f30bf352a852c6c /al | |
parent | 6d0bd1a5320e3103b10e5263732566c9d63981d9 (diff) |
Inline a couple dispatch calls
Diffstat (limited to 'al')
-rw-r--r-- | al/auxeffectslot.cpp | 7 | ||||
-rw-r--r-- | al/auxeffectslot.h | 5 | ||||
-rw-r--r-- | al/source.cpp | 13 | ||||
-rw-r--r-- | al/source.h | 4 |
4 files changed, 5 insertions, 24 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 9f35142e..c1577679 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -1299,13 +1299,6 @@ bool ALeffectslot::eax_set_fx_slot_all( return is_occlusion_modified || is_occlusion_lf_ratio_modified; } -// [[nodiscard]] -bool ALeffectslot::eax_dispatch( - const EaxEaxCall& eax_call) -{ - return eax_call.is_get() ? eax_get(eax_call) : eax_set(eax_call); -} - void ALeffectslot::eax_unlock_legacy() noexcept { assert(eax_fx_slot_index_ < 2); diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h index 2c99f330..ca0dcd31 100644 --- a/al/auxeffectslot.h +++ b/al/auxeffectslot.h @@ -81,8 +81,9 @@ public: // [[nodiscard]] - bool eax_dispatch( - const EaxEaxCall& eax_call); + bool eax_dispatch(const EaxEaxCall& eax_call) + { return eax_call.is_get() ? eax_get(eax_call) : eax_set(eax_call); } + void eax_unlock_legacy() noexcept; diff --git a/al/source.cpp b/al/source.cpp index f46b24fb..ea3a4de7 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -3744,19 +3744,6 @@ void ALsource::eax_initialize(ALCcontext *context) noexcept eax_d_ = eax_; } -void ALsource::eax_dispatch( - const EaxEaxCall& eax_call) -{ - if (eax_call.is_get()) - { - eax_get(eax_call); - } - else - { - eax_set(eax_call); - } -} - void ALsource::eax_update_filters() { eax_update_filters_internal(); diff --git a/al/source.h b/al/source.h index 7c0e4a15..6db6bfa7 100644 --- a/al/source.h +++ b/al/source.h @@ -216,8 +216,8 @@ public: void eax_initialize(ALCcontext *context) noexcept; - void eax_dispatch( - const EaxEaxCall& eax_call); + void eax_dispatch(const EaxEaxCall& eax_call) + { eax_call.is_get() ? eax_get(eax_call) : eax_set(eax_call); } void eax_update_filters(); |