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

Do not attempt to stop preview tracks when arriving from a "track completed" sync #26124

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Dec 25, 2023

This fixes an issue identified with the WASAPI implementation in ppy/osu-framework#6088. It appears to have no real effect on current master, but fixes a deadlock that occurs with the aforementioned framework branch when one lets a preview track play out to the end - at this point all audio will stop and an attempt to perform any synchronous BASS operation (playing another track, seeking) will result in a deadlock.

See discord conversation and later continuation for paper trail.

It isn't terribly clear as to why this is happening precisely, but there does not appear to be any need to stop and seek at that point, so this feels like a decent workaround even if the actual issue is upstream (and will unblock pushing out WASAPI support to users).

…pleted" sync

This fixes an issue identified with the WASAPI implementation in
ppy/osu-framework#6088. It has no real effect
on current `master`, but fixes a deadlock that occurs with the
aforementioned framework branch when one lets a preview track play out
to the end - at this point all audio will stop and an attempt to perform
any synchronous BASS operation (playing another track, seeking) will
result in a deadlock.

It isn't terribly clear as to why this is happening precisely, but
there does not appear to be any need to stop and seek at that point,
so this feels like a decent workaround even if the actual issue is
upstream (and will unblock pushing out WASAPI support to users).
@peppy peppy merged commit ef4191f into ppy:master Dec 26, 2023
9 of 10 checks passed
@bdach bdach deleted the wasapi-preview-track-breakage branch December 26, 2023 09:45
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