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: don't close ALSA output when pausing or on EOF #138

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

aykevl
Copy link
Contributor

@aykevl aykevl commented Nov 9, 2024

Previously the output would always be closed, even when calling Pause(). This worked for the most part, somehow, but not with recent changes.

Instead, only close the output when actually getting an ALSA error that can't be recovered from.


Did some quick testing and this seems to fix #135. Pause/resume seems to work, and autoplay seems to work as well.

Previously the output would always be closed, even when calling Pause().
This worked for the most part, somehow, but not with recent changes.

Instead, only close the output when actually getting an ALSA error that
can't be recovered from.
@aykevl aykevl mentioned this pull request Nov 9, 2024
@devgianlu
Copy link
Owner

Looks great! Thank you so much

@devgianlu devgianlu merged commit 08fd708 into devgianlu:master Nov 9, 2024
6 checks passed
@aykevl aykevl deleted the alsa-pause-on-return branch November 9, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pausing and resuming song seems to be broken.
2 participants