diff options
author | Chris Robinson <[email protected]> | 2022-02-08 20:27:40 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-08 20:27:40 -0800 |
commit | de87cc98d5eef40eeb565b781ac90c1c6f55b42e (patch) | |
tree | 7fb857cf86befaa3f69f8d7b5c207bbd9840576e /al/listener.cpp | |
parent | 46a836fa1417dd93d944fa7b4865dc135947d26c (diff) |
Apply updates for EAX context properties
Diffstat (limited to 'al/listener.cpp')
-rw-r--r-- | al/listener.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/al/listener.cpp b/al/listener.cpp index cae4ba68..11b7162a 100644 --- a/al/listener.cpp +++ b/al/listener.cpp @@ -481,23 +481,3 @@ void UpdateListenerProps(ALCcontext *context) AtomicReplaceHead(context->mFreeListenerProps, props); } } - -#ifdef ALSOFT_EAX -// `alListenerf(AL_METERS_PER_UNIT, value)` -void eax_set_al_listener_meters_per_unit( - ALCcontext& al_context, - ALfloat meters_per_unit) -{ - auto& listener = al_context.mListener; - - if (meters_per_unit < AL_MIN_METERS_PER_UNIT || - meters_per_unit > AL_MAX_METERS_PER_UNIT) - { - SETERR_RETURN(&al_context, AL_INVALID_VALUE,, "Listener meters per unit out of range"); - } - - listener.mMetersPerUnit = meters_per_unit; - - UpdateProps(listener, &al_context); -} -#endif // ALSOFT_EAX |