Hello, I’m new to Fmod and I’m trying to get it working in my C# project (based on Raylib). I have a SoundManager singleton that loads my banks (no problem), updates the system every frame (no problem) and gets the event and starts it (again, no problems). But I don’t hear anything whatsoever, no artifacts, no nothing. Any help would be greatly appreciated.
Hi,
What version of FMOD are you using (i.e. 2.xx.yy)? Could I get you to make sure you’re using the logging version of the FMOD libs (with the “L” suffix), then use Debug_Initialize to set the flags
argument to FMOD_DEBUG_LEVEL_LOG
, and post a runtime log where the issue occurs?
Hello. I am using 2.02.26. However, I wasn’t able to get the L libraries to work. Is it just those that I need, or do I need the regular fmod DLLs in my build folder as well?
EDIT: scratch that, I changed the DLL strings in the wrapper scripts. But I see no log output in the console and no log files created
EDIT 2: scratch that again. I got the file output working, and there is in fact an error:
[LOG] Manager::readBank : fileversion = 142, compatVersion = 140 (oldest = 44, newest = 142)
[ERR] RuntimeBankModel::openFile : Failed to open file 'assets/sounds/banks/Desktop/sfx.bank'
[ERR] ResourceLoader::asyncLoadResourceThread : Failed to load waveform {f3bf2ca4-8846-4a79-b696-c20ede870fbb} (error 18)
[WRN] EventModelAPIData::getSampleLoadingState : Event '{6246b2d5-622e-4d6f-8ba8-3aab1aa5680f}' waveform in error state
[WRN] SoundSourceInstrumentInstance::startChannelIfReady : Resource type 2 for instrument {718e3759-0b67-4f4d-a2f6-be627923ccaa} has returned 76 and will now stop.
[WRN] EventModelAPIData::getSampleLoadingState : Event '{6246b2d5-622e-4d6f-8ba8-3aab1aa5680f}' waveform in error state
[WRN] SoundSourceInstrumentInstance::startChannelIfReady : Resource type 2 for instrument {718e3759-0b67-4f4d-a2f6-be627923ccaa} has returned 76 and will now stop.
[WRN] EventModelAPIData::getSampleLoadingState : Event '{6246b2d5-622e-4d6f-8ba8-3aab1aa5680f}' waveform in error state
[WRN] SoundSourceInstrumentInstance::startChannelIfReady : Resource type 2 for instrument {718e3759-0b67-4f4d-a2f6-be627923ccaa} has returned 76 and will now stop.
[ERR] assert : assertion: 'gSystemInitCount == 0' failed
I’m certain the path is correct, otherwise there would have been an exception no?
Thanks for the log!
There’s a couple of potential causes based on the log info. Assuming that path is correct and the bank is in the correct place, it’s possible that:
- The banks are encrypted, and an encryption key hasn’t been provided
- The bank metadata and assets have been separated, and the non-streaming/streaming asset banks (*.assets.bank/*.streams.bank) haven’t been loaded alongside the metadata bank (*.bank).
- The banks are corrupted in some way, and may require a rebuild in FMOD Studio
I’d recommend verifying that none of the above are occurring.