I’m using Fmod Designer, an old version of FMOD Studio. There is so little information about FMOD Designer that I have to find the answer here.
I developed a c++ program on Linux to load fev files. But the error was reported when loading fev(when using eventsystem->load()). The fev file was built by Fmod Designer for PC(included linux platform).
ERRCHECK(result = FMOD::EventSystem_Create(&eventsystem));
ERRCHECK(result = eventsystem->getSystemObject(&fmodsystem));
ERRCHECK(result = fmodsystem->setOutput(FMOD_OUTPUTTYPE_NOSOUND));
ERRCHECK(result = eventsystem->init(64, FMOD_INIT_NORMAL, 0));
ERRCHECK(result = eventsystem->setMediaPath(path_new));
ERRCHECK(result = eventsystem->load(file_new, 0, &eventproject));
->FMOD error! FMOD_ERR_FORMAT. Unsupported file or audio format.
The log is when fev file be loaded:
MOD: EventSystemI::init : maxchannels = 64. flags = 00000000
FMOD: SystemI::init : FMOD Ex Version: 00042636
FMOD: SystemI::init : maxchannels = 64, flags = 00000000, extradriverdata = (nil)
FMOD: SystemI::close :
FMOD: SystemI::close : Stop all sounds
FMOD: SystemI::close : Shut down output.
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.
FMOD: OutputNoSound::init : Initializing.
FMOD: OutputNoSound::init : Done.
FMOD: SystemI::init : Set up software engine
FMOD: Thread::initThread : Initializing FMOD mixer thread. priority 3
FMOD: Thread::initThread : - Stacksize 32768. Stack pointer (nil) : usesemaphore = 0 :sleeptime = 10
FMOD: Thread::callback : * FMOD mixer thread started
FMOD: Thread::initThread : done.
FMOD: SystemI::init : Set up emulated output
FMOD: SystemI::init : create the channel pool
FMOD: SystemI::init : Set up streamer
FMOD: Thread::initThread : Initializing FMOD stream thread. priority 2
FMOD: Thread::initThread : - Stacksize 49152. Stack pointer (nil) : usesemaphore = 0 : sleeptime = 10
FMOD: Thread::callback : * FMOD stream thread started
FMOD: Thread::initThread : done.
FMOD: SystemI::init : done
FMOD: EventSystemI::init : done
***************
FMOD: EventSystemI::load : name_or_data sfx.fev
FMOD: EventSystemI::load : FEV_MAGIC
Could you any please tell me the reason why?
Thank you so much!