Skip to content

Commit

Permalink
Revert dB conversion before check
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Sep 30, 2023
1 parent 86684f0 commit 0fbe4cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
3.5.2
-----
1. Revert back to "img" tags for no-playing images, resolves loadind if plugin
1. Revert back to "img" tags for no-playing images, resolves loading of plugin
PNGs.
2. Convert replaygain to 2 digits before comparing against 0.00
3. Ensure no repeated textkeys (apart from years).
4. Adjust grid view margins, thanks to Denys Lysiuk.
5. Remove now-playing shadow.
6. Fix showing artist first or last with context.
2. Ensure no repeated textkeys (apart from years).
3. Adjust grid view margins, thanks to Denys Lysiuk.
4. Remove now-playing shadow.
5. Fix showing artist first or last with context.

3.5.1
-----
Expand Down
6 changes: 3 additions & 3 deletions MaterialSkin/HTML/material/html/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ function formatTechInfo(item, source, isCurrent) {
technical.push((item.samplerate/1000)+"kHz");
}
if (undefined!=item.replay_gain) {
let val = parseFloat(item.replay_gain).toFixed(2);
if (undefined==isCurrent || !isCurrent || val!=0.00) {
technical.push(i18n("%1dB", val));
let val = parseFloat(item.replay_gain);
if (undefined==isCurrent || !isCurrent || (val>0.000001 || val<-0.000001)) {
technical.push(i18n("%1dB", val.toFixed(2)));
}
}
if (item.type) {
Expand Down

0 comments on commit 0fbe4cc

Please sign in to comment.