-
Notifications
You must be signed in to change notification settings - Fork 130
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
Enable back support for OpenAL #831
base: master
Are you sure you want to change the base?
Conversation
Mmm, the error in the CI is not linked to code compilation error or anything. It seems the CI is broken today :/
|
@WALLOFJUSTICE it's complete now. we can review. |
found a bug, switching it back to draft. |
Added better management when a music fail to load to prevent NPE |
It builds successfully with -DFMOD_ENABLED=OFF -DOPENAL_ENABLED=1 libvorbis-dev and libopenal-dev installed but fails to complete the loading screen when launching barony. Output:
So I tried copying an existing ogg vorbis audio file as "intro00.ogg" to no avail.
The game data sold through GOG does not contain any such "intro00.ogg". |
Fix a few misalignment between the code for FMod and OpenAL.
The reason is that the FMod code changed a bit and the part that supports OpenAL was not modified.
What this PR do
Allows to compile with OpenAL and have sound/music support without any crashes (tested on Linux, test for Windows will come).
I'm trying to minimize the changes to have a digest PR, don't shoot me to not fix everything around sound/music :)
What I found:
#ifdef SOUND
we need#ifdef MUSIC
Status of tests:
✅ => I'm able to complete a game (gemili) by using most of the secret levels and play with sound levels in the settings
My first impression is that the OpenAL is more accurate/better, at least on Linux (OpenAL Soft implementation). The music are better when I compare with the version with FMod distributed with Steam, my reference.