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

Only validate playback rate when in submission context #26484

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jan 12, 2024

Temporary workaround for #26404.

It appears that some audio files do not behave well with BASS, leading BASS to report a contradictory state of affairs (i.e. a track that is in playing state but also not progressing; see explanation here). This appears to be related to seeking specifically, therefore only enable the validation of playback rate in the most sensitive contexts, namely when any sort of score submission is involved.

This is not a very strong workaround, as it still is possible for the player to get stuck at the replay screen when seeking, but again, I'm not sure we're fixing that without either some very far-reaching framework-side heuristics to detect broken playback state or hoping that this can be fixed in bass.

Temporary workaround for ppy#26404.

It appears that some audio files do not behave well with BASS, leading
BASS to report a contradictory state of affairs (i.e. a track that is
in playing state but also not progressing). This appears to be related
to seeking specifically, therefore only enable the validation of
playback rate in the most sensitive contexts, namely when any sort of
score submission is involved.
@peppy peppy merged commit 98fe9f3 into ppy:master Jan 13, 2024
15 of 17 checks passed
@bdach bdach deleted the only-validate-playback-rate-when-submitting branch January 13, 2024 09:14
xdi1 added a commit to xdi1/osu that referenced this pull request Jan 14, 2024
…k-rate-when-submitting"

This reverts commit 98fe9f3, reversing
changes made to 02975b9.
xdi1 added a commit to xdi1/osu that referenced this pull request Jan 14, 2024
…-playback-rate-when-submitting""

This reverts commit 832c597.
bdach added a commit to bdach/osu that referenced this pull request Jan 22, 2024
…idity (again)

As seen in https://github.com/ppy/osu/actions/runs/7607899979/job/20716013982?pr=26662#step:5:75

In ppy#26484, I went "well if I'm moving the
enabling of validation of playback rate to `SubmittingPlayer` context,
then surely I can remove the local override in the test scene, right?"

Reader: Apparently I did not notice that `FakeImportingPlayer :
TestPlayer : SoloPlayer : SubmittingPlayer`. So no, I could not remove
the local override in the test scene.

You could probably attempt to conjure up some excuse about deep
inheritance hierarchies here but nah. Really just a failure to read
on my behalf as usual.
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.

2 participants