fa57861dbf
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.
15 lines
655 B
C#
15 lines
655 B
C#
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;
|
|
}
|