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

Populate metadata from ID3 tags when changing beatmap audio track in editor #31307

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Dec 27, 2024

The reason why I opted for a complete rewrite rather than a revival of that aforementioned pull series is that it always felt quite gross to me to be pulling framework's audio subsystem into the task of reading ID3 tags, and I also partially don't believe that BASS is good at reading ID3 tags. Meanwhile, we already have another library pulled in that is explicitly intended for reading multimedia metadata, and using it does not require framework changes. (And it was pulled in explicitly for use in the editor verify tab as well.)

The hard and dumb part of this diff is hacking the gibson such that the metadata section on setup screen actually updates itself after the resources section is done doing its thing. After significant gnashing of teeth I just did the bare minimum to make work by caching a common parent and exposing an Action? on it. If anyone has better ideas, I'm all ears.

@bdach bdach self-assigned this Dec 27, 2024
…editor

- Closes ppy#21189
- Supersedes / closes ppy/osu-framework#5627
- Supersedes / closes ppy#22235

The reason why I opted for a complete rewrite rather than a revival of
that aforementioned pull series is that it always felt quite gross to me
to be pulling framework's audio subsystem into the task of reading ID3
tags, and I also partially don't believe that BASS is *good* at reading
ID3 tags. Meanwhile, we already have another library pulled in that is
*explicitly* intended for reading multimedia metadata, and using it
does not require framework changes. (And it was pulled in explicitly for
use in the editor verify tab as well.)

The hard and dumb part of this diff is hacking the gibson such that
the metadata section on setup screen actually *updates itself*
after the resources section is done doing its thing. After significant
gnashing of teeth I just did the bare minimum to make work by caching
a common parent and exposing an `Action?` on it. If anyone has better
ideas, I'm all ears.
Copy link
Member

@peppy peppy left a comment

Choose a reason for hiding this comment

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

Fine by me. Less reliance on bass is better.

@peppy peppy merged commit ac348b8 into ppy:master Dec 27, 2024
10 checks passed
@bdach bdach deleted the id3-tags branch December 30, 2024 06:55
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.

Support reading beatmap metadata from ID3 tags in editor
2 participants