mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #659] [CLOSED] Throttle playback #1004
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1004
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/librespot-org/librespot/pull/659
Author: @Johannesd3
Created: 3/1/2021
Status: ❌ Closed
Base:
dev← Head:pipe-throttling📝 Commits (2)
02c6a49Throttle playbackc7c528cFix formatting📊 Changes
5 files changed (+51 additions, -51 deletions)
View changed files
📝
audio/src/lewton_decoder.rs(+1 -1)📝
audio/src/lib.rs(+15 -8)📝
audio/src/passthrough_decoder.rs(+6 -2)📝
playback/src/audio_backend/pipe.rs(+2 -2)📝
playback/src/player.rs(+27 -38)📄 Description
This is a quick attempt to fix #521. If the player is too far ahead, it lets the thread sleep for a while.
I'm not sure at which treshold and how long I should sleep, and I don't know if this works with every backend and with
--passthrough. Nevertheless I would like to hear your opinions.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.