utopia-rise / fmod-gdextension

FMOD Studio GDExtension bindings for the Godot game engine
MIT License
485 stars 52 forks source link

🚧 [WIP] FMOD web support (HTML5) #210

Open bitbrain opened 7 months ago

bitbrain commented 7 months ago

Screenshot 2024-04-06 133323


Closes #50

This PR aims to add support for web support via wasm.

Todo

Known issues

bitbrain commented 7 months ago

This builds fine and GDExtension seems to load in Chrome (Firefox still does not work), but then it fails due to memory issues in the browser:

Screenshot 2024-04-11 062838 Screenshot 2024-04-11 063207

2shady4u commented 7 months ago

Firefix also doesnt work for my SQLite plugin so I assume the issue with Firefox not working is on the side of godot-cpp itself.

pmdevita commented 3 months ago

Hey I've been trying to take a stab at this recently to see if I can help and learn a bit more about C++. What version of emscripten and FMOD are you compiling with? From what I understand, w32 is the recommended format to work with now, why are you using the bitcode binaries instead?

EDIT: This thread on the FMOD forums seems to indicate that statically linking to the wasm binary like the build currently does will cause linking errors, I'm seeing the same ones right now. We may need to include the binaries instead like we do for the other platforms.

JalikMetagram commented 3 months ago

Hello ! I worked on a little game project using FMOD with Godot using utopia's addon. If you need a tester for this PR with a small game using fmod to make a web export don't hesitate reaching out !

Evelyn-Hill commented 2 months ago

Hey! wanted to checkup on progress of this/if it's still being worked on. If not, I'd be glad to pick up the torch and get this finished up at least on the code side of things.

CedNaru commented 2 months ago

Feel free to try your hands on it. It hasn't been touched in months.

bitbrain commented 2 months ago

I originally raised the PR for this but have not worked on it ever since due to hitting blockers. If anyhbody can figure out how to make it work that would be brilliant.

Evelyn-Hill commented 2 months ago

I originally raised the PR for this but have not worked on it ever since due to hitting blockers. If anyhbody can figure out how to make it work that would be brilliant.

Could I ask what issues you ran into other than the Memory stuff listed above? I'm going to take a crack at it soon.

BigOrangeBoy commented 2 months ago

I use GoDot and FMOD and I would pay someone to finish this

Lvl50Hornist commented 1 month ago

I would also pay for this to be completed. xD Someone, anyone take my money.