Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Great job!

Regarding fMOD + WebGL check out the fMOD documentation
https://fmod.com/docs/2.02/unity/platform-specifics.html#html5webgl

At the bottom there is a link to an example project that helped me get it to work. You basically just have to make sure that all banks have loaded before playing any sounds.

If only it were that simple... I remember last jam trying desperately calling all the functions being absolutely sure the banks were loaded, but in the end, sfx would play fine, and music wouldnt. Only thing that sortve fixed it was delaying the start of the music by a second or so, which felt arbitrary and weird. And same for this, sound fx were fine, but music was a no go. and even delaying things didnt matter. Either way, it feels pretty humongously bogus that this is an issue at all, when you use a tool like this, it should "just work". Or a the very least tell you why it isnt and a straightforward recourse for how to fix it.

Did you toggle on "persistent"? It makes sure that the timeline flows even if no sound is currently playing.

Idk, that is just what I had to do for a test project I made :)

Hmm, how would you toggle it to be persistent? Not sure if we tried that or not.

Here

(2 edits)

yeahh as far as im aware everything is marked persistent.
seems to spit out an event not found exception in webgl when trying to create the instance for the music event. But I don't really get it since the other sfx events play fine. And I've made sure banks were loaded before trying to create the instance. 
Edit: .So I guess I wasn't understanding how to properly wait in the code for the banks to load.
https://fmod.com/docs/2.00/unity/examples-async-loading.html
Following this helped me do it right I guess, still weird why this is only an issue on WebGL. But boy I just hate FMOD's  api. 
Too bad can't yet reup it as a WebGL build. I get why they cut off the uploads, but man is it annoying for reasons like this.

(+1)

Nice that you made it work!

Yeah fMOD is great for musical timing/manipulation, but the unity coding becomes significantly more advanced to the point where I'm reconsidering if it's worth it :)