mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 19: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
@@ -47,7 +47,16 @@ Returns the settings of the currently authenticated user.
|
||||
"shouldAutoplay": true,
|
||||
"isGaplessPlaybackEnabled": true,
|
||||
"replayGainMode": "Off",
|
||||
"streamingQuality": "Auto"
|
||||
"streamingQuality": "Auto",
|
||||
"vuMeterOrientation": "Vertical",
|
||||
"vuMeterSegmentCount": 12,
|
||||
"vuMeterSegmentGap": 1,
|
||||
"vuMeterMediumThreshold": 0.6,
|
||||
"vuMeterHighThreshold": 0.8,
|
||||
"vuMeterShowPeak": true,
|
||||
"vuMeterPeakHoldDurationInMilliseconds": 650,
|
||||
"vuMeterReleasePerSecond": 3,
|
||||
"vuMeterPeakReleasePerSecond": 0.65
|
||||
}
|
||||
```
|
||||
|
||||
@@ -61,6 +70,8 @@ PUT api/v1/users/me/settings
|
||||
|
||||
Updates the settings of the currently authenticated user.
|
||||
|
||||
The VU meter settings configure the segmented meter of the player bar: `vuMeterOrientation` is `Vertical` or `Horizontal`, `vuMeterSegmentCount` is between 1 and 128, `vuMeterSegmentGap` is between 0 and 32 pixels, `vuMeterMediumThreshold` and `vuMeterHighThreshold` are between 0 and 1 and the high threshold must not be lower than the medium one, `vuMeterPeakHoldDurationInMilliseconds` is between 0 and 10000, and `vuMeterReleasePerSecond` and `vuMeterPeakReleasePerSecond` are between 0 and 100 level units per second. All of them are required.
|
||||
|
||||
```json
|
||||
{
|
||||
"isPaginationEnabled": true,
|
||||
@@ -74,7 +85,16 @@ Updates the settings of the currently authenticated user.
|
||||
"shouldAutoplay": true,
|
||||
"isGaplessPlaybackEnabled": true,
|
||||
"replayGainMode": "Off",
|
||||
"streamingQuality": "Auto"
|
||||
"streamingQuality": "Auto",
|
||||
"vuMeterOrientation": "Vertical",
|
||||
"vuMeterSegmentCount": 12,
|
||||
"vuMeterSegmentGap": 1,
|
||||
"vuMeterMediumThreshold": 0.6,
|
||||
"vuMeterHighThreshold": 0.8,
|
||||
"vuMeterShowPeak": true,
|
||||
"vuMeterPeakHoldDurationInMilliseconds": 650,
|
||||
"vuMeterReleasePerSecond": 3,
|
||||
"vuMeterPeakReleasePerSecond": 0.65
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user