[PR #896] [MERGED] Dynamic failable buffer sizing alsa-backend #1136

Closed
opened 2026-02-27 20:01:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/896
Author: @JasonLG1979
Created: 11/29/2021
Status: Merged
Merged: 12/15/2021
Merged by: @roderickvd

Base: devHead: dynamic-alsa-buffer


📝 Commits (1)

  • d5efb8a Dynamic failable buffer sizing alsa-backend

📊 Changes

1 file changed (+174 additions, -13 deletions)

View changed files

📝 playback/src/audio_backend/alsa.rs (+174 -13)

📄 Description

Dynamically set the alsa buffer and period based on the device's reported min/max buffer and period sizes. In the event of failure use the device's defaults.

This should have no effect on devices that allow for reasonable buffer and period sizes but would allow us to be more forgiving with less reasonable devices or configurations.

Closes: https://github.com/librespot-org/librespot/issues/895


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/librespot-org/librespot/pull/896 **Author:** [@JasonLG1979](https://github.com/JasonLG1979) **Created:** 11/29/2021 **Status:** ✅ Merged **Merged:** 12/15/2021 **Merged by:** [@roderickvd](https://github.com/roderickvd) **Base:** `dev` ← **Head:** `dynamic-alsa-buffer` --- ### 📝 Commits (1) - [`d5efb8a`](https://github.com/librespot-org/librespot/commit/d5efb8a620554ced4fda731c72046c4b1af53111) Dynamic failable buffer sizing alsa-backend ### 📊 Changes **1 file changed** (+174 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `playback/src/audio_backend/alsa.rs` (+174 -13) </details> ### 📄 Description Dynamically set the alsa buffer and period based on the device's reported min/max buffer and period sizes. In the event of failure use the device's defaults. This should have no effect on devices that allow for reasonable buffer and period sizes but would allow us to be more forgiving with less reasonable devices or configurations. Closes: https://github.com/librespot-org/librespot/issues/895 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:01:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#1136
No description provided.