aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-13 17:22:41 -0800
committerChris Robinson <[email protected]>2022-02-13 17:22:41 -0800
commit66f6cf121e5a65f5ec0c93872b60e123fa2ad0f3 (patch)
tree4447ce8435f93983f5a3217e022d768d868660be /al/source.h
parent1bebc011778d6bd3cdf4fcbd2704c8cf65446602 (diff)
Commit source EAX properties when not deferring
And make sure they get committed when resuming processing.
Diffstat (limited to 'al/source.h')
-rw-r--r--al/source.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/al/source.h b/al/source.h
index 4f409288..a89a8297 100644
--- a/al/source.h
+++ b/al/source.h
@@ -220,9 +220,11 @@ public:
void eax_update(
EaxContextSharedDirtyFlags dirty_flags);
- void eax_commit();
+ void eax_commit() { eax_apply_deferred(); }
void eax_commit_and_update();
+ bool eax_is_initialized() const noexcept { return eax_al_context_; }
+
static ALsource* eax_lookup_source(
ALCcontext& al_context,
@@ -268,8 +270,6 @@ private:
const char* message);
- bool eax_is_initialized() const noexcept { return eax_al_context_; }
-
void eax_set_source_defaults() noexcept;
void eax_set_active_fx_slots_defaults() noexcept;
void eax_set_send_defaults(EAXSOURCEALLSENDPROPERTIES& eax_send) noexcept;