mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #840] [MERGED] Attenuate after normalisation #1106
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#1106
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/840
Author: @roderickvd
Created: 9/1/2021
Status: ✅ Merged
Merged: 9/2/2021
Merged by: @roderickvd
Base:
dev← Head:attenuate-last📝 Commits (2)
7da4d0eAttenuate after normalisationd8e35bfRemove clamping of float samples📊 Changes
1 file changed (+4 additions, -13 deletions)
View changed files
📝
playback/src/player.rs(+4 -13)📄 Description
This is a small change just to do things right: volume control should be the last in line, after normalisation and potentially other filters. In practice very few if any will notice.
At the same time I removed the clamping of floating point samples. It's not necessary, when converting to integer samples the conversion will saturate at the bounds (i.e. clip) anyway.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.