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

Implement automatic suggestion of global audio offset based on last plays #26169

Merged
merged 12 commits into from Dec 28, 2023

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Dec 27, 2023

RFC. PRing very early to see if this'll even stick as a UI concept & code execution.

2023-12-27.21-15-57.mp4

I'm gonna let the video above speak for itself as to what this is. If it's not clear what it is from the above video then I think I have failed.

This control takes the place of the existing audio offset slider in game settings.

Note that ceci n'est pas un offset wizard. It's supposed to be a crude something to be in place by next year while the work on the real offset wizard can be postponed just a little bit longer.

I don't much like the fact that I had to introduce yet another thing in OsuGameBase for this but I don't see many other options. I'd have put a list in SessionStatics, but that is annoying (due to semantics, you can't just put a list, as it won't fire value change callbacks if you add stuff to it; there's no way to jam a BindableList in there; so what you'd have to do is just spam .ToArray() calls such that the callbacks fire).

@bdach
Copy link
Collaborator Author

bdach commented Dec 27, 2023

Will look into fixing tests if barebones concept is evaluated as valid.

@peppy
Copy link
Sponsor Member

peppy commented Dec 28, 2023

I've added a couple of commits of my own, please check over them too.

Generally this looks great.

@bdach bdach marked this pull request as ready for review December 28, 2023 13:20
@peppy peppy self-requested a review December 28, 2023 13:40
@peppy peppy merged commit 8e3fe09 into ppy:master Dec 28, 2023
9 of 11 checks passed
@bdach bdach deleted the universal-offset-from-session-plays branch January 23, 2024 21:46
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.

None yet

2 participants