-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
AudioFrame parameter name mismatch #86986
Comments
Does this actually cause an issue using the GDExtension strucut, or is that just a code consistency issue? |
@akien-mga I am developing my plugin, and the code currently generated through godot cpp is
but in godot core cpp, the code is
Because AudioFrame is an internal type, it is not easy to test. Sorry for not providing valid test cases |
Thanks for the details. I do think the names should be made to match indeed, as the aim for godot-cpp is to have its code compatible/similar with C++ modules / core engine code. IMO more explicit is better, so I would change the core CC @godotengine/gdextension |
Could use a union: union {
float l;
float left;
}; Unless I'm mistaken Or even with deprecated specific: #ifdef DISABLE_DEPRECATED
float left;
#else
union {
float l;
float left;
};
#endif // DISABLE_DEPRECATED |
This would also fix some other parts of the code tbh, will look at a PR for it |
Tested versions
last code : 84e205b
System information
windows 11
Issue description
I think AudioFrame parameter name mismatch,
in this code: https://github.com/godotengine/godot/blob/84e205b5a17bfe7ace96b78c410ec10aa52241d2/core/math/audio_frame.h#L55C1-L55C1
the param name is l and r,
but in this code:
godot/core/register_core_types.cpp
Line 295 in 84e205b
the param name is left and right,
I think you need to modify one of them? If necessary, I can provide PR
Steps to reproduce
null
Minimal reproduction project (MRP)
null
The text was updated successfully, but these errors were encountered: