Add server-side waveform loudness profiling on track upload

ILoudnessAlgorithm strategy (RmsLoudnessAlgorithm first impl), WaveformProfileService
stores quantized byte[] sidecar in new MediaFileVault (profiles vault), wired into
UnifiedTrackService.UploadAsync; failure is logged and swallowed. WaveformProfileDto
and WaveformProfileOptions in shared projects.
This commit is contained in:
daniel-c-harvey
2026-06-05 16:38:02 -04:00
parent eed99df0dd
commit fa57861dbf
16 changed files with 544 additions and 10 deletions
+14
View File
@@ -0,0 +1,14 @@
namespace DeepDrftModels.DTOs;
/// <summary>
/// Wire contract for a stored waveform loudness profile. <see cref="Data"/> is the base64
/// encoding of a <c>byte[BucketCount]</c>, each byte a peak-normalized loudness value in
/// [0, 255] (the quantized form of a [0, 1] float). The frontend renders these as bar heights
/// in the WaveformSeeker. A track with no stored profile yields no DTO (the frontend falls
/// back to a flat seekbar), so this type never represents "absent" — only a present profile.
/// </summary>
public class WaveformProfileDto
{
public int BucketCount { get; set; }
public string Data { get; set; } = string.Empty;
}