Skip to content
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

Fix member names of AudioFrame to match extension #87006

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

AThousandShips
Copy link
Member

@AThousandShips AThousandShips commented Jan 9, 2024

Ran without the compatibility cases and it didn't complain about any unused cases so seems that all the old uses are fixed, would need someone to confirm though

Ran CI without the old names and didn't have any problems on those platforms so should be covered


_ALWAYS_INLINE_ const float &operator[](int p_idx) const {
DEV_ASSERT((unsigned int)p_idx < 2);
return levels[p_idx];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could keep the old syntax here but nicer on release IMO and matches how we do in Vector2/3/4

core/math/audio_frame.h Outdated Show resolved Hide resolved
@AThousandShips
Copy link
Member Author

@YuriSizov only tangentially related to extensions, the alternative would be to rename the extension ones to l/r possibly breaking compatibility, and being less readable, this doesn't affect extensions at all otherwise

@YuriSizov
Copy link
Contributor

@AThousandShips This is only an issue if we consider extensions to begin with, AFAIU. Which makes the GDExtension team a natural stakeholder in the solution, whether it touches extension code or not 🙂

@AThousandShips
Copy link
Member Author

True, though it's a style improvement nonetheless, though I suspect it might matter when using mixed code accessing both structures, but unsure

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need a rebase for good measure.

@akien-mga akien-mga merged commit eb77418 into godotengine:master Feb 13, 2024
16 checks passed
@AThousandShips AThousandShips deleted the frame_fix branch February 13, 2024 16:27
@akien-mga
Copy link
Member

Thanks!

@AThousandShips
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AudioFrame parameter name mismatch
4 participants