Adds playback preferences and auto-persisted playback state to user settings

This commit is contained in:
BinaryAlley committed 2026-10-15 21:09:38 +03:00
1 parent aab36dcd29
commit dd76309ded
81 files changed
+6102 -173

No files matched your search

@@ -0,0 +1,30 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Playback;
/// <summary>
/// Enumeration for the quality cap applied to the audio the server normalizes (remuxes or transcodes) for a user.
/// </summary>
/// <remarks>
/// The caps apply only to audio the server has to change; a track that is played directly is always delivered as it was stored.
/// </remarks>
public enum PlaybackStreamingQuality
{
/// <summary>
/// The server chooses the quality, with no explicit cap.
/// </summary>
Auto,
/// <summary>
/// Normalized audio is capped at 96 kbps.
/// </summary>
Low,
/// <summary>
/// Normalized audio is capped at 160 kbps.
/// </summary>
Medium,
/// <summary>
/// Normalized audio is capped at 320 kbps.
/// </summary>
High,
}
@@ -0,0 +1,23 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Playback;
/// <summary>
/// Enumeration for the ways ReplayGain normalization is applied to the tracks a user plays.
/// </summary>
public enum ReplayGainMode
{
/// <summary>
/// ReplayGain is not applied. Tracks play at the loudness at which they were stored.
/// </summary>
Off,
/// <summary>
/// Each track is normalized using its own ReplayGain track gain, so tracks from different albums play at a similar loudness.
/// </summary>
Track,
/// <summary>
/// Each track is normalized using the ReplayGain album gain of the album it belongs to, so an album keeps its relative loudness
/// while albums play at a similar loudness to each other.
/// </summary>
Album,
}