0
0

I’m doing some evaluation of the Android version of FMOD Ex API. I am trying to port a project that uses FMOD Ex to Android.

I was able to get the examples to run on a Motorola RAZR MAXX HD running Android 4.1.2.

But I couldn’t get the FMOD Ex examples working on a Nexus 7 (2012) running Android 4.4.2. Running Playsound and Playlist both give me a "File not found" error returned from FMOD. I have the audio assets all copied to the folder called "fmod".

Problem solved: Apparently 4.4 KitKat enforces the READ_EXTERNAL_STORAGE permission. This needs to be added to example projects manifests as a Uses Permission:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
android:permission="android.permission.READ_EXTERNAL_STORAGE"

I don’t really want to have my assets on the sdcard. My project uses an FSB asset, and I’d like to bundle that into the APK. My understanding is that I should maybe be looking at the new FMOD Studio API to support that functionality on Android.

  • You must to post comments
0
0

Thanks for the heads up about the examples, I’ve fixed them all up for our next release.

With FMOD 4 there is no in-built solution for accessing data embedded in the APK, you would need to override our file callbacks and implement this yourself.

With FMOD 5 support is built in, to access drumloop.wav that is embedded in the APK use the following syntax: file:///android_asset/drumloop.wav

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.