diff options
author | Chris Robinson <[email protected]> | 2022-02-08 22:50:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-08 22:50:06 -0800 |
commit | 7896f6bae9ec765b4ec8cae032b5ffd56532a0d4 (patch) | |
tree | 0b0bedc1a3e30e58bc296b611b766a51ce9801a2 /alc | |
parent | 3c9a705210add5aaebd95702035b8ab1fd18fc22 (diff) |
Inline some more simple getters
Diffstat (limited to 'alc')
-rw-r--r-- | alc/context.cpp | 27 | ||||
-rw-r--r-- | alc/context.h | 18 |
2 files changed, 9 insertions, 36 deletions
diff --git a/alc/context.cpp b/alc/context.cpp index bd03eb67..36818537 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -568,33 +568,6 @@ void ALCcontext::eax_set_last_error() noexcept eax_last_error_ = EAXERR_INVALID_OPERATION; } -float ALCcontext::eax_get_max_filter_gain() const noexcept -{ - return eax_max_filter_gain_; -} - -EaxFxSlotIndex ALCcontext::eax_get_previous_primary_fx_slot_index() const noexcept -{ - return eax_previous_primary_fx_slot_index_; -} - -EaxFxSlotIndex ALCcontext::eax_get_primary_fx_slot_index() const noexcept -{ - return eax_primary_fx_slot_index_; -} - -const ALeffectslot& ALCcontext::eax_get_fx_slot( - EaxFxSlotIndexValue fx_slot_index) const -{ - return eax_fx_slots_.get(fx_slot_index); -} - -ALeffectslot& ALCcontext::eax_get_fx_slot( - EaxFxSlotIndexValue fx_slot_index) -{ - return eax_fx_slots_.get(fx_slot_index); -} - [[noreturn]] void ALCcontext::eax_fail( const char* message) diff --git a/alc/context.h b/alc/context.h index f2e88cd4..613c6c12 100644 --- a/alc/context.h +++ b/alc/context.h @@ -250,17 +250,17 @@ public: void eax_set_last_error() noexcept; - float eax_get_max_filter_gain() const noexcept; + float eax_get_max_filter_gain() const noexcept { return eax_max_filter_gain_; } - EaxFxSlotIndex eax_get_previous_primary_fx_slot_index() const noexcept; + EaxFxSlotIndex eax_get_previous_primary_fx_slot_index() const noexcept + { return eax_previous_primary_fx_slot_index_; } + EaxFxSlotIndex eax_get_primary_fx_slot_index() const noexcept + { return eax_primary_fx_slot_index_; } - EaxFxSlotIndex eax_get_primary_fx_slot_index() const noexcept; - - const ALeffectslot& eax_get_fx_slot( - EaxFxSlotIndexValue fx_slot_index) const; - - ALeffectslot& eax_get_fx_slot( - EaxFxSlotIndexValue fx_slot_index); + const ALeffectslot& eax_get_fx_slot(EaxFxSlotIndexValue fx_slot_index) const + { return eax_fx_slots_.get(fx_slot_index); } + ALeffectslot& eax_get_fx_slot(EaxFxSlotIndexValue fx_slot_index) + { return eax_fx_slots_.get(fx_slot_index); } private: |