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 insufficient leniency when querying sample points #25179

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Oct 20, 2023

Compare: https://github.com/peppy/osu-stable-reference/blob/master/osu!/GameplayElements/HitObjects/HitObject.cs#L319.

This fixes the linked case, but is only sorta-kinda correct in general. Only "normal" samples use the stable code path linked above, exceptions such as sliderslide do not, and they don't seem to be applying the 5ms leniency anywhere. With this change, lazer will apply the leniency to both, as sliderslide samples are constructed based on the "normal" ones. But that's probably fine...?

I'm not sure if we want to do the "8% minimum volume" thing on top of this, and if so, how. Maybe one for a separate issue? Or maybe we ignore until somebody complains?

@bdach bdach added area:beatmap-parsing .osu file format parsing audio labels Oct 20, 2023
@bdach bdach self-assigned this Oct 20, 2023
@peppy
Copy link
Member

peppy commented Oct 20, 2023

I'm not sure if we want to do the "8% minimum volume" thing on top of this, and if so, how. Maybe one for a separate issue? Or maybe we ignore until somebody complains?

Definitely needs to match if it doesn't already. Separate PR or issue sounds fine.

@peppy peppy enabled auto-merge October 20, 2023 10:12
@peppy peppy disabled auto-merge October 20, 2023 11:07
@peppy peppy merged commit a26e0bd into ppy:master Oct 20, 2023
@bdach bdach deleted the insufficient-sample-point-query-leniency branch October 20, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

No hitsound when hit objects' volume is on 5% on lazer
2 participants