mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Adds VU meter to the audio player bar
Adds a segmented spectrum VU meter to the condensed player bar, fed by an analyser tapped after ReplayGain and before the volume, so the meter does not depend on the output volume. Adds per-user VU meter settings (orientation, segment count and gap, thresholds, peak marker, hold and falloff rates) across the domain, persistence, API contracts, validation and the settings page, with a migration and localized resources. Sizes the meter cells in whole pixels and keeps the frame clock steady on browsers that round timers. Updates the theming guide, API documentation, request samples and the user manual.
This commit is contained in:
1 parent
9889c86c76
commit
2e9f7d8496
66 files changed
+7844
-81
No files matched your search
+19
-1
@@ -21,6 +21,15 @@ namespace Lumina.Contracts.Requests.UsersManagement.Settings;
|
||||
/// <param name="IsGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not. Required.</param>
|
||||
/// <param name="ReplayGainMode">The way ReplayGain normalization is applied to the tracks the user plays. Required.</param>
|
||||
/// <param name="StreamingQuality">The quality cap applied to the audio the server normalizes for the user. Required.</param>
|
||||
/// <param name="VuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows. Required.</param>
|
||||
/// <param name="VuMeterSegmentCount">The number of segments each channel of the VU meter is divided into. Required.</param>
|
||||
/// <param name="VuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter. Required.</param>
|
||||
/// <param name="VuMeterMediumThreshold">The level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state. Required.</param>
|
||||
/// <param name="VuMeterHighThreshold">The level, between 0 and 1, above which a segment of the VU meter is drawn with its high state. Required.</param>
|
||||
/// <param name="VuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not. Required.</param>
|
||||
/// <param name="VuMeterPeakHoldDurationInMilliseconds">The time, in milliseconds, a peak of the VU meter is held before it starts falling. Required.</param>
|
||||
/// <param name="VuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops. Required.</param>
|
||||
/// <param name="VuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed. Required.</param>
|
||||
[DebuggerDisplay("IsPaginationEnabled: {IsPaginationEnabled}; ItemsPerPage: {ItemsPerPage}")]
|
||||
public sealed record UpdateUserSettingsRequest(
|
||||
bool IsPaginationEnabled,
|
||||
@@ -35,5 +44,14 @@ public sealed record UpdateUserSettingsRequest(
|
||||
bool? ShouldAutoplay,
|
||||
bool? IsGaplessPlaybackEnabled,
|
||||
ReplayGainMode? ReplayGainMode,
|
||||
PlaybackStreamingQuality? StreamingQuality
|
||||
PlaybackStreamingQuality? StreamingQuality,
|
||||
VuMeterOrientation? VuMeterOrientation,
|
||||
int? VuMeterSegmentCount,
|
||||
int? VuMeterSegmentGap,
|
||||
double? VuMeterMediumThreshold,
|
||||
double? VuMeterHighThreshold,
|
||||
bool? VuMeterShowPeak,
|
||||
int? VuMeterPeakHoldDurationInMilliseconds,
|
||||
double? VuMeterReleasePerSecond,
|
||||
double? VuMeterPeakReleasePerSecond
|
||||
);
|
||||
Reference in new issue
Block a user