-
-
Notifications
You must be signed in to change notification settings - Fork 253
Initial implementation adding support for audio effects and filters using OpenAL #2772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add reverb effect support with presets
|
@halx99 For Apple and Wasm, does the |
|
Is |
Clear effect slots if effect is disabled.
|
I think, the class |
wasm alext.h exist, but no |
That is unfortunate, so it means audio effects will not be supported on both WASM and iOS/MacOS. All other target platforms seem to work fine. |
|
Yes, you can just check whether |
Will do. |
On dev(v3), axmol can forcing |
Rename setReverbSettings to more appropriate setReverbProperties
That would be good, keeping a consistent interface and feature set for developers on all platforms. |
…gets where they do not exist.
|
lgtm, will merge later |
|
I got error when merge to dev(v3), not sure does release/2.x works, will test later [ALSOFT] (WW) Error generated on context 0x2a2bfc32120, code 0xa003, "EAX Reverb hfreference out of range"
Exception thrown at 0x00007FFFF27A804A in cpp-tests.exe: Microsoft C++ exception: al::base_exception at memory location 0x000000FC68DFE990.
E/[2025-09-20 15:53:47.975][PID:74d4][TID:ba88]OpenAL error 0xA003 in D:\dev\simdsoft\axmol\axmol\audio\AudioEffectsExtension.cpp ax::AudioEffectsExtension::setEffectParamFloat 90
[ALSOFT] (WW) Error generated on context 0x2a2bfc32120, code 0xa003, "EAX Reverb lfreference out of range"
Exception thrown at 0x00007FFFF27A804A in cpp-tests.exe: Microsoft C++ exception: al::base_exception at memory location 0x000000FC68DFE990.
E/[2025-09-20 15:53:47.977][PID:74d4][TID:ba88]OpenAL error 0xA003 in D:\dev\simdsoft\axmol\axmol\audio\AudioEffectsExtension.cpp ax::AudioEffectsExtension::setEffectParamFloat 90
[ALSOFT] (WW) Error generated on context 0x2a2bfc32120, code 0xa003, "EAX Reverb hfreference out of range"
Exception thrown at 0x00007FFFF27A804A in cpp-tests.exe: Microsoft C++ exception: al::base_exception at memory location 0x000000FC68DFE990.
E/[2025-09-20 15:53:50.974][PID:74d4][TID:ba88]OpenAL error 0xA003 in D:\dev\simdsoft\axmol\axmol\audio\AudioEffectsExtension.cpp ax::AudioEffectsExtension::setEffectParamFloat 90
[ALSOFT] (WW) Error generated on context 0x2a2bfc32120, code 0xa003, "EAX Reverb lfreference out of range"
Exception thrown at 0x00007FFFF27A804A in cpp-tests.exe: Microsoft C++ exception: al::base_exception at memory location 0x000000FC68DFE990.
E/[2025-09-20 15:53:50.976][PID:74d4][TID:ba88]OpenAL error 0xA003 in D:\dev\simdsoft\axmol\axmol\audio\AudioEffectsExtension.cpp ax::AudioEffectsExtension::setEffectParamFloat 90
|
|
|
I'll take a look |
Describe your changes
Reverb effect is implemented, with preset reverb settings available that developers can use (in
AudioEffects.h)A simple test that loops through a few of the reverb effects is in the audio test section of cpp-tests.
@halx99 I wasn't sure what to name the files, so if you need anything changed, then let me know and I'll sort it out.
Issue ticket number and link
#2726
Checklist before requesting a review
For each PR
Add Copyright if it missed:
-
"Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."I have performed a self-review of my code.
Optional:
For core/new feature PR
Axmol 3.x ------------------------------------------------------------
For each 3.x PR