Since fmod3 is no longer officially available and I'd love to have sound, I updated the engine calls to fmod4.
Here is a patch. I didn't want to commit it yet because I think it would break the build because of missing dependencies.
Code licensed under ISC.
Here is a patch. I didn't want to commit it yet because I think it would break the build because of missing dependencies.
Code licensed under ISC.
Attachment: oc_fmodex_4.patch (22k)
I also fixed the OpenAL build for MSVC and pushed the changes. However, only .ogg sound files are loaded; .wav files are not. I don't see any code in the OpenAL implementation to load these files either. Is this feature still missing or does it just not work under Windows?
Hm, I feel kind of stupid for just throwing Google results for "OpenAL wav" around, but the web seems to suggest to either use alutCreateBufferFromFile or decomposing the WAV yourself, then use alBufferData (here and here - the latter actually streams the WAV from mplayer, which is cool but unrelated).
Have you tried either or both? Does it just not work?
Have you tried either or both? Does it just not work?
I haven't tried to implement it yet. I just thought that whoever did the OpenAL port would have implemented .wav support first.
Edit: But since it's so simple, I guess I could just implement it myself.
Edit: But since it's so simple, I guess I could just implement it myself.
As far as I remember, I implemented wav loading via some apple API (ugh). So.. No, generally not implemented.
So what is the status on this actually? If we do support OpenAL, couldn't we use this for all platforms and drop fmod support alltogether? Or has this been done already?
I have already done a patch that allows us to use fmod4. It's just not in the main branch because we couldn't use fmod4 on the 64 bit non-MSVC Windows builds.
If the autobuilds switch to OpenAL, I could merge the patch into default and we could have working fmod4 support.
If the autobuilds switch to OpenAL, I could merge the patch into default and we could have working fmod4 support.
If the autobuilds switch to OpenAL, why not drop fmod completely? Doesn't work OpenAL as fine?
OpenAL caused lots of trouble on my last laptop. If we do switch, we should wait some time and check if there are complaints coming in.
So can OpenAL just be turned on in CMake? Is it working with fmod3 currently? Last time I tried to turn on OpenAL there were some problems to activate OpenAL in the configuration.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill