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 DecouplingFramedClock retaining old lastSeekFailed #6378

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

hwsmm
Copy link
Contributor

@hwsmm hwsmm commented Sep 21, 2024

This PR fixes an issue where DecouplingFramedClock retains old lastSeekFailed after changing its source.

It only happens on Windows because it only has platform offset due to new BASS versions. Seeking to 0 in EditorClock is practically seeking to -15, so TrackVirtual fails to seek to negative position, which in turn sets lastSeekFailed to true, but DecouplingFramedClock doesn't reset the variable after changing the source, so it just keeps interpolating instead of actually playing the source.

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.

Looks logical and seems to work as expected.

@peppy peppy self-requested a review September 22, 2024 13:28
@peppy peppy merged commit fbfb0ef into ppy:master Sep 22, 2024
21 checks passed
@hwsmm hwsmm deleted the reset-decoupling branch November 7, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Song doesn't play if you don't seek first in editor
2 participants