mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #785] [MERGED] Revert math::round_half_to_even #1078
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#1078
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/785
Author: @roderickvd
Created: 5/31/2021
Status: ✅ Merged
Merged: 6/1/2021
Merged by: @roderickvd
Base:
dev← Head:revert-round-half-to-even📝 Commits (1)
d4f466eRevertmath::round_half_to_even📊 Changes
3 files changed (+13 additions, -78 deletions)
View changed files
📝
Cargo.lock(+11 -74)📝
playback/Cargo.toml(+1 -2)📝
playback/src/convert.rs(+1 -2)📄 Description
This caused quite a bump in CPU usage, which would be acceptable if this actually improved sound quality. However, it turns out that this function only has one decimal precision, i.e. it would consider all values from
0.50..0.60(exclusive) as0.5which is inerror for our purposes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.