mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Adds playback preferences and auto-persisted playback state to user settings
This commit is contained in:
1 parent
aab36dcd29
commit
dd76309ded
81 files changed
+6102
-173
No files matched your search
+36
@@ -1,5 +1,6 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.DataAccess.Entities.Common;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.Playback;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
@@ -65,6 +66,41 @@ public class UserSettingsEntity : IStorageEntity, IAuditableEntity
|
||||
/// </summary>
|
||||
public bool ShouldPreserveBookStyles { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the player keeps downloading a track while playback is paused, or not, up to the entire file.
|
||||
/// </summary>
|
||||
public bool ShouldKeepDownloadingWhilePaused { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the player continues playback at the end of an album or artist, or not.
|
||||
/// </summary>
|
||||
public bool ShouldAutoplay { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the player transitions between consecutive tracks without a gap, or not.
|
||||
/// </summary>
|
||||
public bool IsGaplessPlaybackEnabled { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the way ReplayGain normalization is applied to the tracks the user plays.
|
||||
/// </summary>
|
||||
public ReplayGainMode ReplayGainMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the quality cap applied to the audio the server normalizes for the user.
|
||||
/// </summary>
|
||||
public PlaybackStreamingQuality StreamingQuality { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the last volume the player reported for the user. Written automatically by the player, and not part of the settings the user edits.
|
||||
/// </summary>
|
||||
public double Volume { get; set; } = 1.0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the last mute state the player reported for the user. Written automatically by the player, and not part of the settings the user edits.
|
||||
/// </summary>
|
||||
public bool IsMuted { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user