Thank you for the answer.
Pardon, I couldn’t upload files to my profile, so I just uploaded them to GitHub. You can find them here on GitHub. You can Just put these three bank files into the FMOD project\Build\Desktop folder, and attach script to any GameObject. Press Play, and the sound should start.
For convenience’s sake, I uploaded the smallest one, but in the project, there are 15+ banks with SFX, 400+ voice lines, vehicle sounds, etc. Originally, I worked with FMOD Studio 1.08 because all example/tutorial projects were on that version. Afterward, I built all banks in PCM and in Vorbis but used only PCM due to low CPU consumption. So, I have both PCM and Vorbis variations of the same banks.
Is it possible to somehow bypass that size check, or wait another 1-2 seconds for proper load, or maybe convert that PCM to Vorbis again but in another way?
At the moment, I’m developing a big mobile game (90% ready) and want to use Vorbis because of the file size difference (20+MB vs. PCM’s 300+MB). The project fully uses the FMOD audio system. I’m stuck on this (my failure),and can’t move on
Question 2.
Although I didn’t want to bother you with second question, but i don’t left any ideas what to do.
: How to compile the “Distance Filter” for android?
What I have done so far:
- I have read almost all 20k forum topics/posts and found out that the easiest way to get the plugin for Android is to download the old FMOD Android API (v1.10) with
api\lowlevel\examples\vs2010\examples.sln
, along with NVIDIA CodeWorks and VS 2019.
- In examples.sln, I chose the type as “release” and the architecture as arm64-v8a.
- I compiled and obtained “libfmod_distance_filter.so” with a size of 19kb.
- I imported it into
FMOD\platforms\android\lib\arm64-v8a
with import settings platform set to ARM64.
- In FMOD settings and Android settings, I added “fmod_distance_filter” to dynamic plugins.
- The result is an error on Android:
“Error Unity SystemNotInitializedException: [FMOD] Initialization failed: Loading plugin ‘fmod_distance_filter’ from ‘libfmod_distance_filter.so’: ERR_FILE_NOTFOUND: File not found.”
Device information: Android 13, ABI: arm64-v8a.
I have been trying to obtain the Android versions of the Distance Filter for a week already, running back and forth with different combinations of the plugin name, platform, etc. Can’t understand what I’m doing wrong and what I need to do to get these .so files for armv7, arm64, x86, x64.
also tried to build all 4 version and import .so files to their folders with proper import settings- no luck.
It’s a pity that Google’s policies don’t let you include this Distance Filter plugin for Android. As soon as I understand how to build it, I’ll create a guide on GitHub for noobs like me.
i would be so happy if you help to find solution. i been doing this game for 3 yrs and so tired. sound was the last part of development. thx