mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #823] [MERGED] Improve player #1100
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#1100
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/823
Author: @JasonLG1979
Created: 7/21/2021
Status: ✅ Merged
Merged: 9/20/2021
Merged by: @roderickvd
Base:
dev← Head:improve-player📝 Commits (9)
711e2d8Harmonize Seekab816b0Remove unwraps and panics from player58e544cReduce duplicate calls02211d6Simplify decoder errors with thiserror2e134d1Cleanup51cbb90Address code reviews44293a5Merge branch 'librespot-org:dev' into improve-player28e5675Address code reviews 21f31527Address code review📊 Changes
11 files changed (+280 additions, -242 deletions)
View changed files
📝
CHANGELOG.md(+1 -1)📝
playback/Cargo.toml(+5 -5)📝
playback/src/audio_backend/jackaudio.rs(+4 -1)📝
playback/src/audio_backend/portaudio.rs(+4 -1)📝
playback/src/audio_backend/rodio.rs(+3 -1)📝
playback/src/audio_backend/sdl.rs(+3 -1)📝
playback/src/decoder/lewton_decoder.rs(+15 -43)📝
playback/src/decoder/mod.rs(+31 -38)📝
playback/src/decoder/passthrough_decoder.rs(+36 -53)📝
playback/src/lib.rs(+2 -0)📝
playback/src/player.rs(+176 -98)📄 Description
Make the decoders and player use the same math for converting between samples and milliseconds.
Remove unwraps, expects and panics from player, decoders and mod.
Reduce redundant math.
Simplify decoder errors with thiserror.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.