mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-25 21:05:47 +03:00
[PR #138] [MERGED] fix: don't close ALSA output when pausing or on EOF #228
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/devgianlu/go-librespot/pull/138
Author: @aykevl
Created: 11/9/2024
Status: ✅ Merged
Merged: 11/9/2024
Merged by: @devgianlu
Base:
master← Head:alsa-pause-on-return📝 Commits (1)
e56abaafix: don't close ALSA output when pausing or on EOF📊 Changes
1 file changed (+20 additions, -11 deletions)
View changed files
📝
output/driver-alsa.go(+20 -11)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.