-
-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when playing back sound from gdextension using web target #1350
Comments
Make sure you are using emscripten version |
I'm using version |
Thanks for the MRP! It took a few little changes, but I got the project generating a tone on Linux. Then built and exported for the web, and I'm getting the exact same errors in the browser console as shown in the issue description, and not getting the tone. So, I'm able to confirm the issue. |
The error seems to be coming from when This might not mean anything, but I find it interesting that the error is In any case, because the word "function" is in the error, it certainly sounds like it's from the act of trying to call the function pointer? And we know the function pointer isn't null, because it's using the |
Hm. So, But for some reason, in I'm still not sure this is the source of the problem, but it certainly seems suspicious. |
I think the next steps here are probably to narrow down if some part of the function signature is causing the issue here. I think I'll try declaring a virtual method on the Godot side that takes only a However, I think I need to put this down for now :-) |
This has been fixed in Godot v4.3 |
Godot version
4.2.1
godot-cpp version
4.2.1
System information
Ubuntu 23.10, Intel Core i7, NVIDIA GeForce RTX 3050 / Google Chrome Version 120.0.6099.109 (64-bit)
Issue description
I created a project that has a gdextension stream that generates a tone. The class is then attached to an AudioStreamPlayer to generate the sounds. This works in native Linux and Windows builds. When exporting to Web the Chrome console displays the following error message:
Steps to reproduce
I created an example project that reproduces the error:
godot-custom-audiostream
To reproduce the error compile and export project using web target.
On the browser the error can be viewed using the Google chrome console.
Minimal reproduction project
godot-custom-audiostream
The text was updated successfully, but these errors were encountered: