mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 21:35:49 +03:00
[PR #123] [MERGED] Rewrite ALSA buffering #224
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#224
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/123
Author: @aykevl
Created: 10/9/2024
Status: ✅ Merged
Merged: 10/16/2024
Merged by: @devgianlu
Base:
master← Head:alsa-period-size📝 Commits (2)
631d83ffix: set a reasonable period size instead of using the default435c88afeat: rewrite ALSA buffering📊 Changes
1 file changed (+113 additions, -155 deletions)
View changed files
📝
output/driver_unix.go(+113 -155)📄 Description
This PR fixes two main issues:
I suspect this is the root cause of https://community.volumio.com/t/new-2023-spotify-plugin/63381/354
An easy way to test this bug is to play a loud part of a song, pause, seek to a quiet part (the beginning is usually quiet), and resume. Before this PR, there was a bit of a stutter. After this PR, the stutter is gone entirely.
Note that this PR doesn't close/reopen the output device anymore on every pause/resume. I don't know whether anybody relied on this behavior but it's a change so noting it just in case.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.