aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorHeroBrine1st Erquilenne <pankov.76.tvink@gmail.com>2025-09-05 00:21:20 +0300
committerHeroBrine1st Erquilenne <pankov.76.tvink@gmail.com>2026-04-02 20:03:48 +0300
commit9b00854e686c65ef4b0578071e5e2a4d9083181a (patch)
treed42e509b48b1a95a4560561648951b10f8cb1143 /Emby.Server.Implementations
parent397147d0352845afc278e1266cbb2e1b0a1f64b4 (diff)
Add AlbumNormalizationGain field to BaseItemDto
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index b392340f71..08ced387b8 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -1019,6 +1019,15 @@ namespace Emby.Server.Implementations.Dto
{
dto.AlbumId = albumParent.Id;
dto.AlbumPrimaryImageTag = GetTagAndFillBlurhash(dto, albumParent, ImageType.Primary);
+ if (albumParent.LUFS.HasValue)
+ {
+ // -18 LUFS reference, same as ReplayGain 2.0, compatible with ReplayGain 1.0
+ dto.AlbumNormalizationGain = -18f - albumParent.LUFS;
+ }
+ else if (albumParent.NormalizationGain.HasValue)
+ {
+ dto.AlbumNormalizationGain = albumParent.NormalizationGain;
+ }
}
// if (options.ContainsField(ItemFields.MediaSourceCount))