I am not able to use fmod on Android since the bank files cannot be found.
I am strictly following the example code from https://github.com/dapetcu21/defold-fmod in order to read the bank files from bundled resource. The same example code works fine on Mac and Windows (I cannot test on iOS). Moreover I do remember I have used fmod on Android in my previous game with no issue at all (it was end of 2021).
The bank files are in /bundled_resources/android/assets/banks and if I unzip the apk I see that they are indeed in the subfolder assets/banks in the apk. As suggested by @dapetcu21 I try to load them with the absolute path
file:///android_asset/banks/
but fmod fails to load them and also io.open returns nil with the file.
As a side note, I see that sys.get_application_path() returns “/data/user/0/com.example.todo” on Android and this looks somehow strange to me… However, I am not using this path on Android but the absolute path reported above as suggested by dapetcu21. On Mac and Windows I use sys.get_application_path() to build the absolute path and filenames and it works fine.
Finally, I have read the topics Bundle Resources Android path (SOLVED) and Where are common bundle resources supposed to be put in Android? by @Pkeod.
Any help is greatly appreciated since I am completely lost with this…
THANKS!
Ciao!