Hi,
I’m working with FMOD and Unreal on a spatial audio project for Android using the Steam Audio spatialization plugin.
All these plugins should work well together but it looks like it doesn’t work as expected on android. I can’t load phonon.so files whereas they are into the lib folder of the apk.
- FMOD alone with unreal works well on android
- Steam audio alone with unreal works well on android
- FMOD and Steam audio work well on the Unreal editor and inside the mobile device preview. (On a windows machine)
- FMOD and Steam audio crash the app at startup on Android
Just a few info about the configuration :
-
I created a **_APL.xml file to copy the phonon.so and the phonon_fmod.so files into the apk as expected int the fmod documentation : www.fmod/docs/2.02/unreal/platform-specifics.html
-
I checked into the apk file, the phonon_fmod.so and phonon.so are inside the lib folder. (to be precise the libphonon.so and the libphonon_fmod.so → lib prefix looks like it is added during copy)
When I start the android .apk It crashes after the splash startup image.
I get this Log error at startup :
[2022.11.03-13.02.05:534][ 0]LogFMOD: FFMODStudioModule startup
[2022.11.03-13.02.05:534][ 0]LogFMOD: Lib path = ‘…/…/…/Production_Project/Plugins/FMODStudio/Binaries’
[2022.11.03-13.02.05:537][ 0]LogFMOD: Display: Loaded bank lookup
[2022.11.03-13.02.05:539][ 0]LogFMOD: Display: Loaded asset lookup
[2022.11.03-13.02.05:556][ 0]LogFMOD: Default sample rate = 24000
[2022.11.03-13.02.05:556][ 0]LogFMOD: System sample rate = 48000
[2022.11.03-13.02.05:641][ 0]LogFMOD: Loading plugin ‘phonon_fmod’
[2022.11.03-13.02.05:641][ 0]LogFMOD: Trying to load plugin file at location: phonon_fmod.so
[2022.11.03-13.02.05:642][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “phonon_fmod.so” not found
[2022.11.03-13.02.05:643][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “phonon_fmod.so” not found
[2022.11.03-13.02.05:643][ 0]LogFMOD: Trying to load plugin file at location: phonon_fmod64.so
[2022.11.03-13.02.05:643][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “phonon_fmod64.so” not found
[2022.11.03-13.02.05:644][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “phonon_fmod64.so” not found
[2022.11.03-13.02.05:644][ 0]LogFMOD: Trying to load plugin file at location: libphonon_fmod.so
[2022.11.03-13.02.05:645][ 0]LogFMOD: Loaded plugin phonon_fmod
[2022.11.03-13.02.05:645][ 0]LogFMOD: Loading plugin ‘resonanceaudio’
[2022.11.03-13.02.05:645][ 0]LogFMOD: Trying to load plugin file at location: resonanceaudio.so
[2022.11.03-13.02.05:646][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “resonanceaudio.so” not found
[2022.11.03-13.02.05:646][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “resonanceaudio.so” not found
[2022.11.03-13.02.05:647][ 0]LogFMOD: Trying to load plugin file at location: resonanceaudio64.so
[2022.11.03-13.02.05:647][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “resonanceaudio64.so” not found
[2022.11.03-13.02.05:648][ 0]LogFMOD: Error: …/android/src/fmod_os_misc.cpp(799) - dlopen failed: library “resonanceaudio64.so” not found
[2022.11.03-13.02.05:648][ 0]LogFMOD: Trying to load plugin file at location: libresonanceaudio.so
[2022.11.03-13.02.05:648][ 0]LogFMOD: Loaded plugin resonanceaudio
[2022.11.03-13.02.05:743][ 0]LogSteamAudio: Initialized module SteamAudio.
…
[2022.11.03-13.02.06:171][ 0]LogAndroid: Warning: dlopen failed: dlopen failed: library “…/…/…/Production_Project/Plugins/FMODStudio/Binaries/Android/arm64-v8a/libphonon_fmod.so” not found
(Don’t worry about the resonance audio plugin)
I noted two things :
-
I find a bit strange the location where it searches for the libphonon_fmod.so ( “…/…/…/Production_Project/Plugins/FMODStudio/Binaries/Android/arm64-v8a/libphonon_fmod.so”) because it looks like to be the search path of the computer.
-
I never saw any file phonon_fmod64.so into any of the library of steam audio.
Other infos :
- FMOD studio Version : 2.02.10
- Unreal Engine version : 4.27
- Steam audio version : 4.11.1
- Steam audio Support for FMOD version : 4.11.1
IN FMOD :
- steam audio plugins for fmod studio installed into the fmod Project folder and fmod configured for mobile
- fmod configured for mobile platform
Source : Getting Started — Steam Audio FMOD Studio Integration documentation
IN UNREAL :
- FMODStudio, SteamAudioFMODStudio and SteamAudio plugins installed into the Game directory
- the Source/Project/Project.Build.cs contains SteamAudio as PublicDependencyModuleNames
Source : Getting Started — Steam Audio FMOD Studio Integration documentation
Any ideas of what could be missing in the configuration?
Thanks a lot for your help!