mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +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
@@ -73,7 +73,7 @@ Each artist is a card; selecting it opens the artist's page, and the card's acti
|
||||
|
||||
The artist page is also where you edit the artist. It lists the artist's albums as cards, each leading to its own album page, followed by the artist's general information, contributors, ratings, genres, tags, aliases, areas and identifiers. The album page holds the album's information and its tracks, and the track page holds the track's details. The album page also shows the artwork Lumina stored for the album as a strip of thumbnails beside the main image, and selecting a thumbnail displays that image in place of the cover. Deleting an artist, album or track removes it from Lumina's catalogue; your files are not touched.
|
||||
|
||||
The music pages also play what they show. The artist page has a **Play all** control that plays the artist's releases in the order the page presents them, one release after another. The actions menu of a music library card on the home page, of an artist card, and of an album card offers **Play** and **Shuffle**. Play starts the library at its first artist and continues through the remaining artists in artist page order, starts the artist's discography in the order the artist page presents it, or starts the release in disc and track order. Shuffle starts the library, the artist's discography or the release with a list of up to 100 tracks sampled uniformly at random from every track of that scope, and continues in random order without repeating a track that is already queued. The album page has a **Play album** control that plays the release in disc and track order, and every track row has its own play control that plays just that track. The track page has a **Play track** control for the track it shows. Every track row on the album page also has an actions menu: **Add to playlist** opens the playlist picker for that track, **Add to play queue** appends it to the end of the player queue or starts it when the queue is empty, and **Play all from here** replaces the queue with that track and the rest of the album and starts playing. Starting playback opens the player bar at the bottom of the window. It keeps playing while you move between pages, and the bar shows the track name, with the album name underneath when the track belongs to a named album, the progress of the current track and the volume, together with previous, play or pause, stop, next and repeat controls. When you expand it, it also shows the cover art, the current track name, the release type, the release name and year, the artist name, and a carousel of the album's stored artwork, next to the queue, where every entry carries its album cover, including when only one track is queued. Selecting an artwork in the carousel shows it as the main cover. The expanded queue moves the current track to the top whenever playback advances, so it stays visible even in a long list. The double chevron at the right points up to expand the bar and down to collapse it. Stop is the square control next to play or pause; in the condensed bar it stops playback and slides the bar out of view.
|
||||
The music pages also play what they show. The artist page has a **Play all** control that plays the artist's releases in the order the page presents them, one release after another. The actions menu of a music library card on the home page, of an artist card, and of an album card offers **Play** and **Shuffle**. Play starts the library at its first artist and continues through the remaining artists in artist page order, starts the artist's discography in the order the artist page presents it, or starts the release in disc and track order. Shuffle starts the library, the artist's discography or the release with a list of up to 100 tracks sampled uniformly at random from every track of that scope, and continues in random order without repeating a track that is already queued. The album page has a **Play album** control that plays the release in disc and track order, and every track row has its own play control that plays just that track. The track page has a **Play track** control for the track it shows. Every track row on the album page also has an actions menu: **Add to playlist** opens the playlist picker for that track, **Add to play queue** appends it to the end of the player queue or starts it when the queue is empty, and **Play all from here** replaces the queue with that track and the rest of the album and starts playing. Starting playback opens the player bar at the bottom of the window. It keeps playing while you move between pages, and the bar shows the track name, with the album name underneath when the track belongs to a named album, the progress of the current track, a segmented VU meter that follows the level of the track, and the volume, together with previous, play or pause, stop, next and repeat controls. When you expand it, it also shows the cover art, the current track name, the release type, the release name and year, the artist name, and a carousel of the album's stored artwork, next to the queue, where every entry carries its album cover, including when only one track is queued. Selecting an artwork in the carousel shows it as the main cover. The expanded queue moves the current track to the top whenever playback advances, so it stays visible even in a long list. The double chevron at the right points up to expand the bar and down to collapse it. Stop is the square control next to play or pause; in the condensed bar it stops playback and slides the bar out of view.
|
||||
|
||||
## Playlists
|
||||
|
||||
@@ -106,4 +106,6 @@ The tools section holds your settings and the language picker.
|
||||
|
||||
Your **settings** decide how lists and books behave for you. Enable pagination and the number of items per page control how browsing is split. The alpha picker option decides whether titles beginning with "The" are filed under the next word. Theme caching decides whether the theme is fetched fresh each time. Rendering PDFs as images and preserving book styles shape how books are shown, and the metadata and artwork aggregation options decide whether missing fields are completed from your other providers. A final group of options shapes playback: whether the player keeps downloading while it is paused (for a track the server has to normalize, this keeps its bounded one-segment lookahead filled rather than downloading the whole file), whether it continues automatically at the end of an album or artist, whether consecutive tracks play without a gap, how ReplayGain normalizes loudness, and the quality cap used when the server has to normalize a track. That cap applies only when the server re-encodes a track into a lossy format; a remux only repackages the stored audio, and a lossless delivery is not reduced. The ones that touch libraries are described in more detail in [Managing Libraries](../managing-libraries/index.md).
|
||||
|
||||
The **VU meter** group shapes the meter of the player bar. Orientation lays its channels out as columns that grow upwards or rows that grow to the right. Segments per channel sets how finely each channel is divided, and Segment gap sets the space between segments and channels. The medium and high thresholds decide the level at which a segment changes color; the high threshold cannot be lower than the medium one. Show peak keeps a mark at the loudest recent level of each channel. Peak hold is how long that mark stays in place before it falls, in milliseconds, and Level falloff and Peak falloff are how quickly the bars and the peak marks drop once the sound gets quieter, in level units per second. Larger falloff values drop faster. The meter follows the level of the track itself, so muting the player or moving the volume slider does not change the height of the bars, and saving these settings applies them to the player without reloading the page.
|
||||
|
||||
The **language** picker switches the interface between the languages Lumina ships with, and remembers your choice.
|
||||
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -14,5 +14,14 @@ Content-Type: application/json
|
||||
"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
|
||||
}
|
||||
@@ -14,6 +14,7 @@ The web client of Lumina is a themed shell: every page is rendered inside the te
|
||||
- [Template Resolution](#template-resolution)
|
||||
- [The Layout Template (shared/layout)](#the-layout-template-sharedlayout)
|
||||
- [The Audio Player Bar](#the-audio-player-bar)
|
||||
- [The VU Meter](#the-vu-meter)
|
||||
- [Play Affordances on the Music Pages](#play-affordances-on-the-music-pages)
|
||||
- [The audio player sub templates](#the-audio-player-sub-templates)
|
||||
- [The Navigation Template (shared/nav-menu)](#the-navigation-template-sharednav-menu)
|
||||
@@ -306,6 +307,7 @@ The markup inside the bar exposes the hook attributes the audio player script bi
|
||||
| `data-audio-player-now-playing-artist` | The artist name of the current track's album in the expanded player. It is left empty until the album details are available. |
|
||||
| `data-audio-player-artwork-carousel` | The carousel of the stored artwork of the current track's album. The player appends one `button.artwork-carousel-item` per stored image, carrying `data-artwork-path`, and toggles the `selected` class and `aria-pressed` on the chosen item. The element is hidden with the `hidden` attribute while the album has no stored artwork. |
|
||||
| `data-audio-player-cover-thumbnail`, `data-audio-player-cover-image` | The cover art of the condensed bar and of the expanded bar. Choosing an album artwork in the carousel replaces both images until the next track. |
|
||||
| `data-audio-player-vu-meter` | The root of the VU meter of the condensed bar, between the album art and the current time label. The player fills it with its channels, segments and peak markers, exactly as described in [The VU Meter](#the-vu-meter). A theme that does not render the hook gets the built-in meter inserted in that place. |
|
||||
| `data-audio-player-volume` | The volume slider, a `role="slider"` element with `tabindex="0"` that the player scrubs and whose ARIA value attributes it writes. The fill is published as `--audio-player-volume-start` and `--audio-player-volume-width`. |
|
||||
| `data-audio-player-volume-level` | The volume fill. It carries no geometry of its own: the stylesheet drives it from the custom properties above. |
|
||||
| `data-audio-player-mute` | The mute toggle. The player toggles the `is-muted` class and the `aria-pressed` state on it. |
|
||||
@@ -313,6 +315,34 @@ The markup inside the bar exposes the hook attributes the audio player script bi
|
||||
|
||||
Each progress layer also carries `data-audio-player-progress-layer` (`played`, `downloaded` or `undownloaded`) in the markup, so a theme can select a layer by its state as well as by its class. The player writes no inline geometry on any of the bar elements: it publishes the geometry of each state as the custom properties above, which the application stylesheet consumes, so a theme restyles or reorients either bar by consuming the same properties.
|
||||
|
||||
#### The VU Meter
|
||||
|
||||
The condensed bar shows a segmented VU meter that follows the level of the track itself. The renderer taps it after the track's ReplayGain normalization and before the output volume and mute stage, so lowering the volume or muting the player never changes the height of the meter for the same moment of audio. The meter is a spectrum meter with one channel per frequency band, with 24 logarithmically spaced bands between 40 Hz and 16 kHz, each drawn as a stack of segments. The number of segments, the gap between them, the two threshold zones, the peak marker and its hold and falloff times, and the orientation are per-user settings, so the meter reflects the values the user saved on the settings page.
|
||||
|
||||
The meter is built from elements rather than a canvas, exactly like the three state progress bar, so a theme restyles every part of it. The root carries the `audio-player-vu-meter` class and the `data-audio-player-vu-meter` hook, and the player fills it with:
|
||||
|
||||
| Element | Class and hook | State the player writes |
|
||||
| --- | --- | --- |
|
||||
| A channel, one per band | `audio-player-vu-channel`, `data-audio-player-vu-channel` (the zero based band index) | None. The channel is a layout container. |
|
||||
| A segment, one per configured segment of a channel | `audio-player-vu-segment`, `data-audio-player-vu-segment` | `data-audio-player-vu-segment-state` (`active` or `inactive`) and `data-audio-player-vu-segment-zone` (`normal`, `medium` or `high`). The zone is derived from the position of the segment and the two thresholds of the settings. |
|
||||
| A peak marker, one per channel | `audio-player-vu-peak`, `data-audio-player-vu-peak` | `data-audio-player-vu-peak-state` (`active` or `inactive`). The marker is removed with the `hidden` attribute while the show peak setting is off. |
|
||||
|
||||
The segments are rendered in ascending level order, so the first segment of a channel is the quietest one. The root also carries `data-audio-player-vu-meter-orientation` (`vertical` or `horizontal`), `data-audio-player-vu-meter-segments` (the configured segment count) and `data-audio-player-vu-meter-show-peak` (`true` or `false`), so a theme can select a state or a layout from the root as well.
|
||||
|
||||
The player publishes no geometry other than two custom properties, which a theme maps to whichever axis its own layout uses:
|
||||
|
||||
| Custom property | Published on | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `--audio-player-vu-segment-gap` | The meter root | The configured gap between segments and between channels, as a CSS length in pixels. |
|
||||
| `--audio-player-vu-segment-count` | The meter root | The configured number of segments per channel, as a plain number, so a stylesheet can size the meter from it. |
|
||||
| `--audio-player-vu-peak-position` | Each peak marker | The held peak of its channel, as a percentage of the channel axis, from `0%` at the quiet end to `100%` at the loud end. |
|
||||
|
||||
The fallback stylesheet sizes the vertical meter from whole pixel square cells rather than stretching it over a box, because a box divided into rows gives fractional heights that browsers snap unevenly. The cell is the largest whole pixel size that fits the configured segments in `--audio-player-vu-extent` (48px by default), capped by `--audio-player-vu-max-cell` (4px), and a theme can override either property. With the default 12 segments and a 1px gap the cells are 3px squares.
|
||||
|
||||
The application fallback stylesheet gives the meter its own default look: 24 columns of segments whose active state uses one of three colors, with the inactive segments transparent, and a peak line that spans the short axis of the channel. A theme can replace all of it. The colors are custom properties declared on the bar container (`--audio-player-vu-normal-color`, `--audio-player-vu-medium-color`, `--audio-player-vu-high-color`, `--audio-player-vu-inactive-color`, `--audio-player-vu-peak-color` and `--audio-player-vu-background-color`), so a theme recolors the meter without touching the markup, and it can give each zone, each state and each orientation its own shape, image or animation.
|
||||
|
||||
The meter is decorative for assistive technology and carries `aria-hidden="true"`, because the same information is available through the now playing labels and the progress bar. It reads the analyzer that the player renderer taps after the track's ReplayGain normalization and before the output volume, so it needs no extra request and no extra decode, it is unaffected by the volume and mute controls, and it never affects playback. When the player is paused, stopped, ended or failed, the displayed levels fall to zero instead of freezing.
|
||||
|
||||
#### Play Affordances on the Music Pages
|
||||
|
||||
The artist page, the album page and the track page render play triggers, and the card actions menus render play and shuffle triggers, all handled by the global audio player script through event delegation. The music library cards on the home page, the artist cards and the album cards offer both actions, so the whole library, an artist or a release can be started in order or shuffled. A theme template that replaces one of those pages or menus opts in by rendering the same trigger attributes: the player binds one listener on the document, so a trigger works anywhere in the swapped page content and the page needs no script of its own.
|
||||
|
||||
+45
@@ -91,6 +91,51 @@ public class UserSettingsEntity : IStorageEntity, IAuditableEntity
|
||||
/// </summary>
|
||||
public PlaybackStreamingQuality StreamingQuality { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the direction in which each channel of the VU meter of the audio player grows.
|
||||
/// </summary>
|
||||
public VuMeterOrientation VuMeterOrientation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of segments each channel of the VU meter is divided into.
|
||||
/// </summary>
|
||||
public int VuMeterSegmentCount { get; set; } = 12;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the gap, in pixels, between the segments and the channels of the VU meter.
|
||||
/// </summary>
|
||||
public int VuMeterSegmentGap { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state.
|
||||
/// </summary>
|
||||
public double VuMeterMediumThreshold { get; set; } = 0.6;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the level, between 0 and 1, above which a segment of the VU meter is drawn with its high state.
|
||||
/// </summary>
|
||||
public double VuMeterHighThreshold { get; set; } = 0.8;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the VU meter holds the peak level of each channel after it falls, or not.
|
||||
/// </summary>
|
||||
public bool VuMeterShowPeak { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time, in milliseconds, a peak of the VU meter is held before it starts falling.
|
||||
/// </summary>
|
||||
public int VuMeterPeakHoldDurationInMilliseconds { get; set; } = 650;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of level units the display of the VU meter falls per second when the input level drops.
|
||||
/// </summary>
|
||||
public double VuMeterReleasePerSecond { get; set; } = 3.0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of level units the peak of the VU meter falls per second after its hold time elapsed.
|
||||
/// </summary>
|
||||
public double VuMeterPeakReleasePerSecond { get; set; } = 0.65;
|
||||
|
||||
/// <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>
|
||||
|
||||
+10
-1
@@ -30,7 +30,16 @@ public static class UpdateUserSettingsRequestMapping
|
||||
request.ShouldAutoplay,
|
||||
request.IsGaplessPlaybackEnabled,
|
||||
request.ReplayGainMode,
|
||||
request.StreamingQuality
|
||||
request.StreamingQuality,
|
||||
request.VuMeterOrientation,
|
||||
request.VuMeterSegmentCount,
|
||||
request.VuMeterSegmentGap,
|
||||
request.VuMeterMediumThreshold,
|
||||
request.VuMeterHighThreshold,
|
||||
request.VuMeterShowPeak,
|
||||
request.VuMeterPeakHoldDurationInMilliseconds,
|
||||
request.VuMeterReleasePerSecond,
|
||||
request.VuMeterPeakReleasePerSecond
|
||||
);
|
||||
}
|
||||
}
|
||||
+19
-1
@@ -39,6 +39,15 @@ public static class UserSettingsEntityMapping
|
||||
repositoryEntity.IsGaplessPlaybackEnabled,
|
||||
repositoryEntity.ReplayGainMode,
|
||||
repositoryEntity.StreamingQuality,
|
||||
repositoryEntity.VuMeterOrientation,
|
||||
repositoryEntity.VuMeterSegmentCount,
|
||||
repositoryEntity.VuMeterSegmentGap,
|
||||
repositoryEntity.VuMeterMediumThreshold,
|
||||
repositoryEntity.VuMeterHighThreshold,
|
||||
repositoryEntity.VuMeterShowPeak,
|
||||
repositoryEntity.VuMeterPeakHoldDurationInMilliseconds,
|
||||
repositoryEntity.VuMeterReleasePerSecond,
|
||||
repositoryEntity.VuMeterPeakReleasePerSecond,
|
||||
repositoryEntity.Volume,
|
||||
repositoryEntity.IsMuted
|
||||
);
|
||||
@@ -65,7 +74,16 @@ public static class UserSettingsEntityMapping
|
||||
repositoryEntity.ShouldAutoplay,
|
||||
repositoryEntity.IsGaplessPlaybackEnabled,
|
||||
repositoryEntity.ReplayGainMode,
|
||||
repositoryEntity.StreamingQuality
|
||||
repositoryEntity.StreamingQuality,
|
||||
repositoryEntity.VuMeterOrientation,
|
||||
repositoryEntity.VuMeterSegmentCount,
|
||||
repositoryEntity.VuMeterSegmentGap,
|
||||
repositoryEntity.VuMeterMediumThreshold,
|
||||
repositoryEntity.VuMeterHighThreshold,
|
||||
repositoryEntity.VuMeterShowPeak,
|
||||
repositoryEntity.VuMeterPeakHoldDurationInMilliseconds,
|
||||
repositoryEntity.VuMeterReleasePerSecond,
|
||||
repositoryEntity.VuMeterPeakReleasePerSecond
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,15 @@ public static class UserSettingsMapping
|
||||
IsGaplessPlaybackEnabled = domainEntity.IsGaplessPlaybackEnabled,
|
||||
ReplayGainMode = domainEntity.ReplayGainMode,
|
||||
StreamingQuality = domainEntity.StreamingQuality,
|
||||
VuMeterOrientation = domainEntity.VuMeterOrientation,
|
||||
VuMeterSegmentCount = domainEntity.VuMeterSegmentCount,
|
||||
VuMeterSegmentGap = domainEntity.VuMeterSegmentGap,
|
||||
VuMeterMediumThreshold = domainEntity.VuMeterMediumThreshold,
|
||||
VuMeterHighThreshold = domainEntity.VuMeterHighThreshold,
|
||||
VuMeterShowPeak = domainEntity.VuMeterShowPeak,
|
||||
VuMeterPeakHoldDurationInMilliseconds = domainEntity.VuMeterPeakHoldDurationInMilliseconds,
|
||||
VuMeterReleasePerSecond = domainEntity.VuMeterReleasePerSecond,
|
||||
VuMeterPeakReleasePerSecond = domainEntity.VuMeterPeakReleasePerSecond,
|
||||
Volume = domainEntity.Volume,
|
||||
IsMuted = domainEntity.IsMuted
|
||||
};
|
||||
@@ -61,7 +70,16 @@ public static class UserSettingsMapping
|
||||
domainEntity.ShouldAutoplay,
|
||||
domainEntity.IsGaplessPlaybackEnabled,
|
||||
domainEntity.ReplayGainMode,
|
||||
domainEntity.StreamingQuality
|
||||
domainEntity.StreamingQuality,
|
||||
domainEntity.VuMeterOrientation,
|
||||
domainEntity.VuMeterSegmentCount,
|
||||
domainEntity.VuMeterSegmentGap,
|
||||
domainEntity.VuMeterMediumThreshold,
|
||||
domainEntity.VuMeterHighThreshold,
|
||||
domainEntity.VuMeterShowPeak,
|
||||
domainEntity.VuMeterPeakHoldDurationInMilliseconds,
|
||||
domainEntity.VuMeterReleasePerSecond,
|
||||
domainEntity.VuMeterPeakReleasePerSecond
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -174,6 +174,26 @@ public static class ValidatorUtilities
|
||||
return ruleBuilder.Must(value => !value.HasValue || value.Value >= valueToCompare);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines a validation rule that ensures the nullable double property is greater than or equal to the value another property of the request selects.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If either the property or the selected comparison value is <see langword="null"/>, this rule passes (use
|
||||
/// <see cref="NotNull{TRequest, TProperty}(IRuleBuilder{TRequest, TProperty})"/> to check for missing values).
|
||||
/// </remarks>
|
||||
/// <typeparam name="TRequest">The type of the request being validated.</typeparam>
|
||||
/// <param name="ruleBuilder">The rule builder instance.</param>
|
||||
/// <param name="comparisonSelector">A function that selects the value the property must be greater than or equal to.</param>
|
||||
/// <returns>The current <see cref="IRuleBuilder{TRequest, TProperty}"/> instance for method chaining.</returns>
|
||||
public static IRuleBuilder<TRequest, double?> GreaterThanOrEqualTo<TRequest>(this IRuleBuilder<TRequest, double?> ruleBuilder, Func<TRequest, double?> comparisonSelector)
|
||||
{
|
||||
return ruleBuilder.Must((request, value) =>
|
||||
{
|
||||
double? comparisonValue = comparisonSelector(request);
|
||||
return !value.HasValue || !comparisonValue.HasValue || value.Value >= comparisonValue.Value;
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines a validation rule that ensures the property is not <see langword="null"/>.
|
||||
/// </summary>
|
||||
@@ -365,6 +385,22 @@ public static class ValidatorUtilities
|
||||
return ruleBuilder.Must(value => !value.HasValue || (value.Value >= minimumValue && value.Value <= maximumValue));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines a validation rule that ensures the nullable double property is within the specified inclusive range.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If the property is <see langword="null"/>, this rule passes (use <see cref="NotNull{TRequest, TProperty}(IRuleBuilder{TRequest, TProperty})"/> to check for missing values).
|
||||
/// </remarks>
|
||||
/// <typeparam name="TRequest">The type of the request being validated.</typeparam>
|
||||
/// <param name="ruleBuilder">The rule builder instance.</param>
|
||||
/// <param name="minimumValue">The minimum allowed value of the property.</param>
|
||||
/// <param name="maximumValue">The maximum allowed value of the property.</param>
|
||||
/// <returns>The current <see cref="IRuleBuilder{TRequest, TProperty}"/> instance for method chaining.</returns>
|
||||
public static IRuleBuilder<TRequest, double?> InclusiveBetween<TRequest>(this IRuleBuilder<TRequest, double?> ruleBuilder, double minimumValue, double maximumValue)
|
||||
{
|
||||
return ruleBuilder.Must(value => !value.HasValue || (value.Value >= minimumValue && value.Value <= maximumValue));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines a validation rule that ensures the property is equal to another property of the request.
|
||||
/// </summary>
|
||||
|
||||
+19
-1
@@ -21,6 +21,15 @@ namespace Lumina.Application.Core.UsersManagement.Settings.Commands.UpdateUserSe
|
||||
/// <param name="IsGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="ReplayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="StreamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="VuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="VuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="VuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="VuMeterMediumThreshold">The level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="VuMeterHighThreshold">The level, between 0 and 1, above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="VuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not.</param>
|
||||
/// <param name="VuMeterPeakHoldDurationInMilliseconds">The time, in milliseconds, a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="VuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="VuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
public record UpdateUserSettingsCommand(
|
||||
bool IsPaginationEnabled,
|
||||
int ItemsPerPage,
|
||||
@@ -34,5 +43,14 @@ public record UpdateUserSettingsCommand(
|
||||
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
|
||||
) : ICommand;
|
||||
+10
-1
@@ -124,6 +124,15 @@ public class UpdateUserSettingsCommandHandler : ICommandHandler<UpdateUserSettin
|
||||
command.ShouldAutoplay!.Value,
|
||||
command.IsGaplessPlaybackEnabled!.Value,
|
||||
command.ReplayGainMode!.Value,
|
||||
command.StreamingQuality!.Value);
|
||||
command.StreamingQuality!.Value,
|
||||
command.VuMeterOrientation!.Value,
|
||||
command.VuMeterSegmentCount!.Value,
|
||||
command.VuMeterSegmentGap!.Value,
|
||||
command.VuMeterMediumThreshold!.Value,
|
||||
command.VuMeterHighThreshold!.Value,
|
||||
command.VuMeterShowPeak!.Value,
|
||||
command.VuMeterPeakHoldDurationInMilliseconds!.Value,
|
||||
command.VuMeterReleasePerSecond!.Value,
|
||||
command.VuMeterPeakReleasePerSecond!.Value);
|
||||
}
|
||||
}
|
||||
+73
@@ -49,5 +49,78 @@ public class UpdateUserSettingsCommandValidator : AbstractValidator<UpdateUserSe
|
||||
.IsInEnum()
|
||||
.WithError(Errors.UserSettings.InvalidStreamingQuality)
|
||||
.When(command => command.StreamingQuality is not null);
|
||||
|
||||
RuleFor(command => command.VuMeterOrientation)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterOrientationCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterOrientation)
|
||||
.IsInEnum()
|
||||
.WithError(Errors.UserSettings.InvalidVuMeterOrientation)
|
||||
.When(command => command.VuMeterOrientation is not null);
|
||||
|
||||
RuleFor(command => command.VuMeterSegmentCount)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterSegmentCountCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterSegmentCount)
|
||||
.InclusiveBetween(1, 128)
|
||||
.WithError(Errors.UserSettings.VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight);
|
||||
|
||||
RuleFor(command => command.VuMeterSegmentGap)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterSegmentGapCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterSegmentGap)
|
||||
.InclusiveBetween(0, 32)
|
||||
.WithError(Errors.UserSettings.VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo);
|
||||
|
||||
RuleFor(command => command.VuMeterMediumThreshold)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterMediumThresholdCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterMediumThreshold)
|
||||
.InclusiveBetween(0d, 1d)
|
||||
.WithError(Errors.UserSettings.VuMeterMediumThresholdMustBeBetweenZeroAndOne);
|
||||
|
||||
RuleFor(command => command.VuMeterHighThreshold)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterHighThresholdCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterHighThreshold)
|
||||
.InclusiveBetween(0d, 1d)
|
||||
.WithError(Errors.UserSettings.VuMeterHighThresholdMustBeBetweenZeroAndOne);
|
||||
|
||||
RuleFor(command => command.VuMeterHighThreshold)
|
||||
.GreaterThanOrEqualTo(command => command.VuMeterMediumThreshold)
|
||||
.WithError(Errors.UserSettings.VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold);
|
||||
|
||||
RuleFor(command => command.VuMeterShowPeak)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterShowPeakCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterPeakHoldDurationInMilliseconds)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterPeakHoldDurationCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterPeakHoldDurationInMilliseconds)
|
||||
.InclusiveBetween(0, 10000)
|
||||
.WithError(Errors.UserSettings.VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds);
|
||||
|
||||
RuleFor(command => command.VuMeterReleasePerSecond)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterReleasePerSecondCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterReleasePerSecond)
|
||||
.InclusiveBetween(0d, 100d)
|
||||
.WithError(Errors.UserSettings.VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred);
|
||||
|
||||
RuleFor(command => command.VuMeterPeakReleasePerSecond)
|
||||
.NotNull()
|
||||
.WithError(Errors.UserSettings.VuMeterPeakReleasePerSecondCannotBeNull);
|
||||
|
||||
RuleFor(command => command.VuMeterPeakReleasePerSecond)
|
||||
.InclusiveBetween(0d, 100d)
|
||||
.WithError(Errors.UserSettings.VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred);
|
||||
}
|
||||
}
|
||||
+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
|
||||
);
|
||||
@@ -23,6 +23,15 @@ namespace Lumina.Contracts.Responses.UsersManagement.Settings;
|
||||
/// <param name="IsGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="ReplayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="StreamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="VuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="VuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="VuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="VuMeterMediumThreshold">The level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="VuMeterHighThreshold">The level, between 0 and 1, above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="VuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not.</param>
|
||||
/// <param name="VuMeterPeakHoldDurationInMilliseconds">The time, in milliseconds, a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="VuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="VuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public sealed record UserSettingsResponse(
|
||||
Guid UserId,
|
||||
@@ -38,5 +47,14 @@ public sealed record UserSettingsResponse(
|
||||
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
|
||||
);
|
||||
@@ -86,14 +86,50 @@ public class UserSettingsConfiguration : IEntityTypeConfiguration<UserSettingsEn
|
||||
.IsRequired()
|
||||
.HasColumnOrder(18);
|
||||
|
||||
builder.Property(settings => settings.Volume)
|
||||
builder.Property(settings => settings.VuMeterOrientation)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(19);
|
||||
|
||||
builder.Property(settings => settings.IsMuted)
|
||||
builder.Property(settings => settings.VuMeterSegmentCount)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(20);
|
||||
|
||||
builder.Property(settings => settings.VuMeterSegmentGap)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(21);
|
||||
|
||||
builder.Property(settings => settings.VuMeterMediumThreshold)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(22);
|
||||
|
||||
builder.Property(settings => settings.VuMeterHighThreshold)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(23);
|
||||
|
||||
builder.Property(settings => settings.VuMeterShowPeak)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(24);
|
||||
|
||||
builder.Property(settings => settings.VuMeterPeakHoldDurationInMilliseconds)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(25);
|
||||
|
||||
builder.Property(settings => settings.VuMeterReleasePerSecond)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(26);
|
||||
|
||||
builder.Property(settings => settings.VuMeterPeakReleasePerSecond)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(27);
|
||||
|
||||
builder.Property(settings => settings.Volume)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(28);
|
||||
|
||||
builder.Property(settings => settings.IsMuted)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(29);
|
||||
|
||||
// audit
|
||||
builder.Property(settings => settings.CreatedOnUtc)
|
||||
.IsRequired()
|
||||
|
||||
src/Lumina.DataAccess/Common/Migrations/20261021134714_AddsVuMeterSettingsToUserSettings.Designer.cs
Generated
+3709
File diff suppressed because it is too large.
Load diff
+166
@@ -0,0 +1,166 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Lumina.DataAccess.Common.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddsVuMeterSettingsToUserSettings : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<double>(
|
||||
name: "Volume",
|
||||
table: "UserSettings",
|
||||
type: "REAL",
|
||||
nullable: false,
|
||||
oldClrType: typeof(double),
|
||||
oldType: "REAL")
|
||||
.Annotation("Relational:ColumnOrder", 28)
|
||||
.OldAnnotation("Relational:ColumnOrder", 19);
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "IsMuted",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "INTEGER")
|
||||
.Annotation("Relational:ColumnOrder", 29)
|
||||
.OldAnnotation("Relational:ColumnOrder", 20);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "VuMeterHighThreshold",
|
||||
table: "UserSettings",
|
||||
type: "REAL",
|
||||
nullable: false,
|
||||
defaultValue: 0.8)
|
||||
.Annotation("Relational:ColumnOrder", 23);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "VuMeterMediumThreshold",
|
||||
table: "UserSettings",
|
||||
type: "REAL",
|
||||
nullable: false,
|
||||
defaultValue: 0.6)
|
||||
.Annotation("Relational:ColumnOrder", 22);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "VuMeterOrientation",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: 0)
|
||||
.Annotation("Relational:ColumnOrder", 19);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "VuMeterPeakHoldDurationInMilliseconds",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: 650)
|
||||
.Annotation("Relational:ColumnOrder", 25);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "VuMeterPeakReleasePerSecond",
|
||||
table: "UserSettings",
|
||||
type: "REAL",
|
||||
nullable: false,
|
||||
defaultValue: 0.65)
|
||||
.Annotation("Relational:ColumnOrder", 27);
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "VuMeterReleasePerSecond",
|
||||
table: "UserSettings",
|
||||
type: "REAL",
|
||||
nullable: false,
|
||||
defaultValue: 3.0)
|
||||
.Annotation("Relational:ColumnOrder", 26);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "VuMeterSegmentCount",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: 12)
|
||||
.Annotation("Relational:ColumnOrder", 20);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "VuMeterSegmentGap",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: 1)
|
||||
.Annotation("Relational:ColumnOrder", 21);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "VuMeterShowPeak",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: true)
|
||||
.Annotation("Relational:ColumnOrder", 24);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterHighThreshold",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterMediumThreshold",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterOrientation",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterPeakHoldDurationInMilliseconds",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterPeakReleasePerSecond",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterReleasePerSecond",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterSegmentCount",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterSegmentGap",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VuMeterShowPeak",
|
||||
table: "UserSettings");
|
||||
|
||||
migrationBuilder.AlterColumn<double>(
|
||||
name: "Volume",
|
||||
table: "UserSettings",
|
||||
type: "REAL",
|
||||
nullable: false,
|
||||
oldClrType: typeof(double),
|
||||
oldType: "REAL")
|
||||
.Annotation("Relational:ColumnOrder", 19)
|
||||
.OldAnnotation("Relational:ColumnOrder", 28);
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "IsMuted",
|
||||
table: "UserSettings",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "INTEGER")
|
||||
.Annotation("Relational:ColumnOrder", 20)
|
||||
.OldAnnotation("Relational:ColumnOrder", 29);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2552,7 +2552,7 @@ namespace Lumina.DataAccess.Common.Migrations
|
||||
|
||||
b.Property<bool>("IsMuted")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnOrder(20);
|
||||
.HasColumnOrder(29);
|
||||
|
||||
b.Property<bool>("IsPaginationEnabled")
|
||||
.HasColumnType("INTEGER")
|
||||
@@ -2616,8 +2616,44 @@ namespace Lumina.DataAccess.Common.Migrations
|
||||
|
||||
b.Property<double>("Volume")
|
||||
.HasColumnType("REAL")
|
||||
.HasColumnOrder(28);
|
||||
|
||||
b.Property<double>("VuMeterHighThreshold")
|
||||
.HasColumnType("REAL")
|
||||
.HasColumnOrder(23);
|
||||
|
||||
b.Property<double>("VuMeterMediumThreshold")
|
||||
.HasColumnType("REAL")
|
||||
.HasColumnOrder(22);
|
||||
|
||||
b.Property<int>("VuMeterOrientation")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnOrder(19);
|
||||
|
||||
b.Property<int>("VuMeterPeakHoldDurationInMilliseconds")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnOrder(25);
|
||||
|
||||
b.Property<double>("VuMeterPeakReleasePerSecond")
|
||||
.HasColumnType("REAL")
|
||||
.HasColumnOrder(27);
|
||||
|
||||
b.Property<double>("VuMeterReleasePerSecond")
|
||||
.HasColumnType("REAL")
|
||||
.HasColumnOrder(26);
|
||||
|
||||
b.Property<int>("VuMeterSegmentCount")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnOrder(20);
|
||||
|
||||
b.Property<int>("VuMeterSegmentGap")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnOrder(21);
|
||||
|
||||
b.Property<bool>("VuMeterShowPeak")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnOrder(24);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("UserId")
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.Playback;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the direction in which each channel of the VU meter of the audio player grows.
|
||||
/// </summary>
|
||||
public enum VuMeterOrientation
|
||||
{
|
||||
/// <summary>
|
||||
/// The channels of the meter are columns and their levels grow from bottom to top.
|
||||
/// </summary>
|
||||
Vertical,
|
||||
|
||||
/// <summary>
|
||||
/// The channels of the meter are rows and their levels grow from left to right.
|
||||
/// </summary>
|
||||
Horizontal,
|
||||
}
|
||||
|
||||
@@ -24,5 +24,23 @@ public static partial class Errors
|
||||
public static Error StreamingQualityCannotBeNull => Error.Validation(description: nameof(StreamingQualityCannotBeNull));
|
||||
public static Error InvalidReplayGainMode => Error.Validation(description: nameof(InvalidReplayGainMode));
|
||||
public static Error InvalidStreamingQuality => Error.Validation(description: nameof(InvalidStreamingQuality));
|
||||
public static Error VuMeterOrientationCannotBeNull => Error.Validation(description: nameof(VuMeterOrientationCannotBeNull));
|
||||
public static Error InvalidVuMeterOrientation => Error.Validation(description: nameof(InvalidVuMeterOrientation));
|
||||
public static Error VuMeterSegmentCountCannotBeNull => Error.Validation(description: nameof(VuMeterSegmentCountCannotBeNull));
|
||||
public static Error VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight => Error.Validation(description: nameof(VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight));
|
||||
public static Error VuMeterSegmentGapCannotBeNull => Error.Validation(description: nameof(VuMeterSegmentGapCannotBeNull));
|
||||
public static Error VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo => Error.Validation(description: nameof(VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo));
|
||||
public static Error VuMeterMediumThresholdCannotBeNull => Error.Validation(description: nameof(VuMeterMediumThresholdCannotBeNull));
|
||||
public static Error VuMeterMediumThresholdMustBeBetweenZeroAndOne => Error.Validation(description: nameof(VuMeterMediumThresholdMustBeBetweenZeroAndOne));
|
||||
public static Error VuMeterHighThresholdCannotBeNull => Error.Validation(description: nameof(VuMeterHighThresholdCannotBeNull));
|
||||
public static Error VuMeterHighThresholdMustBeBetweenZeroAndOne => Error.Validation(description: nameof(VuMeterHighThresholdMustBeBetweenZeroAndOne));
|
||||
public static Error VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold => Error.Validation(description: nameof(VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold));
|
||||
public static Error VuMeterShowPeakCannotBeNull => Error.Validation(description: nameof(VuMeterShowPeakCannotBeNull));
|
||||
public static Error VuMeterPeakHoldDurationCannotBeNull => Error.Validation(description: nameof(VuMeterPeakHoldDurationCannotBeNull));
|
||||
public static Error VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds => Error.Validation(description: nameof(VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds));
|
||||
public static Error VuMeterReleasePerSecondCannotBeNull => Error.Validation(description: nameof(VuMeterReleasePerSecondCannotBeNull));
|
||||
public static Error VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred));
|
||||
public static Error VuMeterPeakReleasePerSecondCannotBeNull => Error.Validation(description: nameof(VuMeterPeakReleasePerSecondCannotBeNull));
|
||||
public static Error VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred));
|
||||
}
|
||||
}
|
||||
+199
-2
@@ -28,6 +28,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
private const bool DEFAULT_IS_GAPLESS_PLAYBACK_ENABLED = true;
|
||||
private const ReplayGainMode DEFAULT_REPLAY_GAIN_MODE = ReplayGainMode.Off;
|
||||
private const PlaybackStreamingQuality DEFAULT_STREAMING_QUALITY = PlaybackStreamingQuality.Auto;
|
||||
private const VuMeterOrientation DEFAULT_VU_METER_ORIENTATION = VuMeterOrientation.Vertical;
|
||||
private const int DEFAULT_VU_METER_SEGMENT_COUNT = 12;
|
||||
private const int DEFAULT_VU_METER_SEGMENT_GAP = 1;
|
||||
private const double DEFAULT_VU_METER_MEDIUM_THRESHOLD = 0.6;
|
||||
private const double DEFAULT_VU_METER_HIGH_THRESHOLD = 0.8;
|
||||
private const bool DEFAULT_VU_METER_SHOW_PEAK = true;
|
||||
private const int DEFAULT_VU_METER_PEAK_HOLD_DURATION_IN_MILLISECONDS = 650;
|
||||
private const double DEFAULT_VU_METER_RELEASE_PER_SECOND = 3.0;
|
||||
private const double DEFAULT_VU_METER_PEAK_RELEASE_PER_SECOND = 0.65;
|
||||
private const double DEFAULT_VOLUME = 1.0;
|
||||
private const bool DEFAULT_IS_MUTED = false;
|
||||
|
||||
@@ -104,6 +113,51 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
/// </summary>
|
||||
public PlaybackStreamingQuality StreamingQuality { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the direction in which each channel of the VU meter of the audio player grows.
|
||||
/// </summary>
|
||||
public VuMeterOrientation VuMeterOrientation { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of segments each channel of the VU meter is divided into.
|
||||
/// </summary>
|
||||
public int VuMeterSegmentCount { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the gap, in pixels, between the segments and the channels of the VU meter.
|
||||
/// </summary>
|
||||
public int VuMeterSegmentGap { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state.
|
||||
/// </summary>
|
||||
public double VuMeterMediumThreshold { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the level, between 0 and 1, above which a segment of the VU meter is drawn with its high state.
|
||||
/// </summary>
|
||||
public double VuMeterHighThreshold { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the VU meter holds the peak level of each channel after it falls, or not.
|
||||
/// </summary>
|
||||
public bool VuMeterShowPeak { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the time, in milliseconds, a peak of the VU meter is held before it starts falling.
|
||||
/// </summary>
|
||||
public int VuMeterPeakHoldDurationInMilliseconds { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of level units the display of the VU meter falls per second when the input level drops.
|
||||
/// </summary>
|
||||
public double VuMeterReleasePerSecond { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of level units the peak of the VU meter falls per second after its hold time elapsed.
|
||||
/// </summary>
|
||||
public double VuMeterPeakReleasePerSecond { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the last volume the player reported for the user. It is written automatically by the player, and is not part of the settings the user edits.
|
||||
/// </summary>
|
||||
@@ -132,6 +186,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
/// <param name="isGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="replayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <param name="volume">The last volume the player reported for the user.</param>
|
||||
/// <param name="isMuted">The last mute state the player reported for the user.</param>
|
||||
private UserSettings(
|
||||
@@ -150,6 +213,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
bool isGaplessPlaybackEnabled,
|
||||
ReplayGainMode replayGainMode,
|
||||
PlaybackStreamingQuality streamingQuality,
|
||||
VuMeterOrientation vuMeterOrientation,
|
||||
int vuMeterSegmentCount,
|
||||
int vuMeterSegmentGap,
|
||||
double vuMeterMediumThreshold,
|
||||
double vuMeterHighThreshold,
|
||||
bool vuMeterShowPeak,
|
||||
int vuMeterPeakHoldDurationInMilliseconds,
|
||||
double vuMeterReleasePerSecond,
|
||||
double vuMeterPeakReleasePerSecond,
|
||||
double volume,
|
||||
bool isMuted) : base(id)
|
||||
{
|
||||
@@ -167,6 +239,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
IsGaplessPlaybackEnabled = isGaplessPlaybackEnabled;
|
||||
ReplayGainMode = replayGainMode;
|
||||
StreamingQuality = streamingQuality;
|
||||
VuMeterOrientation = vuMeterOrientation;
|
||||
VuMeterSegmentCount = vuMeterSegmentCount;
|
||||
VuMeterSegmentGap = vuMeterSegmentGap;
|
||||
VuMeterMediumThreshold = vuMeterMediumThreshold;
|
||||
VuMeterHighThreshold = vuMeterHighThreshold;
|
||||
VuMeterShowPeak = vuMeterShowPeak;
|
||||
VuMeterPeakHoldDurationInMilliseconds = vuMeterPeakHoldDurationInMilliseconds;
|
||||
VuMeterReleasePerSecond = vuMeterReleasePerSecond;
|
||||
VuMeterPeakReleasePerSecond = vuMeterPeakReleasePerSecond;
|
||||
Volume = volume;
|
||||
IsMuted = isMuted;
|
||||
}
|
||||
@@ -194,6 +275,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
DEFAULT_IS_GAPLESS_PLAYBACK_ENABLED,
|
||||
DEFAULT_REPLAY_GAIN_MODE,
|
||||
DEFAULT_STREAMING_QUALITY,
|
||||
DEFAULT_VU_METER_ORIENTATION,
|
||||
DEFAULT_VU_METER_SEGMENT_COUNT,
|
||||
DEFAULT_VU_METER_SEGMENT_GAP,
|
||||
DEFAULT_VU_METER_MEDIUM_THRESHOLD,
|
||||
DEFAULT_VU_METER_HIGH_THRESHOLD,
|
||||
DEFAULT_VU_METER_SHOW_PEAK,
|
||||
DEFAULT_VU_METER_PEAK_HOLD_DURATION_IN_MILLISECONDS,
|
||||
DEFAULT_VU_METER_RELEASE_PER_SECOND,
|
||||
DEFAULT_VU_METER_PEAK_RELEASE_PER_SECOND,
|
||||
DEFAULT_VOLUME,
|
||||
DEFAULT_IS_MUTED
|
||||
);
|
||||
@@ -223,6 +313,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
DEFAULT_IS_GAPLESS_PLAYBACK_ENABLED,
|
||||
DEFAULT_REPLAY_GAIN_MODE,
|
||||
DEFAULT_STREAMING_QUALITY,
|
||||
DEFAULT_VU_METER_ORIENTATION,
|
||||
DEFAULT_VU_METER_SEGMENT_COUNT,
|
||||
DEFAULT_VU_METER_SEGMENT_GAP,
|
||||
DEFAULT_VU_METER_MEDIUM_THRESHOLD,
|
||||
DEFAULT_VU_METER_HIGH_THRESHOLD,
|
||||
DEFAULT_VU_METER_SHOW_PEAK,
|
||||
DEFAULT_VU_METER_PEAK_HOLD_DURATION_IN_MILLISECONDS,
|
||||
DEFAULT_VU_METER_RELEASE_PER_SECOND,
|
||||
DEFAULT_VU_METER_PEAK_RELEASE_PER_SECOND,
|
||||
DEFAULT_VOLUME,
|
||||
DEFAULT_IS_MUTED
|
||||
);
|
||||
@@ -245,6 +344,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
/// <param name="isGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="replayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <param name="volume">The last volume the player reported for the user.</param>
|
||||
/// <param name="isMuted">The last mute state the player reported for the user.</param>
|
||||
/// <returns>
|
||||
@@ -265,6 +373,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
bool isGaplessPlaybackEnabled,
|
||||
ReplayGainMode replayGainMode,
|
||||
PlaybackStreamingQuality streamingQuality,
|
||||
VuMeterOrientation vuMeterOrientation,
|
||||
int vuMeterSegmentCount,
|
||||
int vuMeterSegmentGap,
|
||||
double vuMeterMediumThreshold,
|
||||
double vuMeterHighThreshold,
|
||||
bool vuMeterShowPeak,
|
||||
int vuMeterPeakHoldDurationInMilliseconds,
|
||||
double vuMeterReleasePerSecond,
|
||||
double vuMeterPeakReleasePerSecond,
|
||||
double volume,
|
||||
bool isMuted)
|
||||
{
|
||||
@@ -284,6 +401,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
isGaplessPlaybackEnabled,
|
||||
replayGainMode,
|
||||
streamingQuality,
|
||||
vuMeterOrientation,
|
||||
vuMeterSegmentCount,
|
||||
vuMeterSegmentGap,
|
||||
vuMeterMediumThreshold,
|
||||
vuMeterHighThreshold,
|
||||
vuMeterShowPeak,
|
||||
vuMeterPeakHoldDurationInMilliseconds,
|
||||
vuMeterReleasePerSecond,
|
||||
vuMeterPeakReleasePerSecond,
|
||||
volume,
|
||||
isMuted);
|
||||
}
|
||||
@@ -306,6 +432,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
/// <param name="isGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="replayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <param name="volume">The last volume the player reported for the user.</param>
|
||||
/// <param name="isMuted">The last mute state the player reported for the user.</param>
|
||||
/// <returns>
|
||||
@@ -327,10 +462,45 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
bool isGaplessPlaybackEnabled,
|
||||
ReplayGainMode replayGainMode,
|
||||
PlaybackStreamingQuality streamingQuality,
|
||||
VuMeterOrientation vuMeterOrientation,
|
||||
int vuMeterSegmentCount,
|
||||
int vuMeterSegmentGap,
|
||||
double vuMeterMediumThreshold,
|
||||
double vuMeterHighThreshold,
|
||||
bool vuMeterShowPeak,
|
||||
int vuMeterPeakHoldDurationInMilliseconds,
|
||||
double vuMeterReleasePerSecond,
|
||||
double vuMeterPeakReleasePerSecond,
|
||||
double volume,
|
||||
bool isMuted)
|
||||
{
|
||||
return new UserSettings(id, userId, isPaginationEnabled, itemsPerPage, shouldIgnoreThePrefixForAlphaPicker, isThemeCachingEnabled, shouldAggregateMetadataWhenMissing, shouldAggregateArtworkWhenMissing, shouldRenderPdfAsImages, shouldPreserveBookStyles, shouldKeepDownloadingWhilePaused, shouldAutoplay, isGaplessPlaybackEnabled, replayGainMode, streamingQuality, volume, isMuted);
|
||||
return new UserSettings(
|
||||
id,
|
||||
userId,
|
||||
isPaginationEnabled,
|
||||
itemsPerPage,
|
||||
shouldIgnoreThePrefixForAlphaPicker,
|
||||
isThemeCachingEnabled,
|
||||
shouldAggregateMetadataWhenMissing,
|
||||
shouldAggregateArtworkWhenMissing,
|
||||
shouldRenderPdfAsImages,
|
||||
shouldPreserveBookStyles,
|
||||
shouldKeepDownloadingWhilePaused,
|
||||
shouldAutoplay,
|
||||
isGaplessPlaybackEnabled,
|
||||
replayGainMode,
|
||||
streamingQuality,
|
||||
vuMeterOrientation,
|
||||
vuMeterSegmentCount,
|
||||
vuMeterSegmentGap,
|
||||
vuMeterMediumThreshold,
|
||||
vuMeterHighThreshold,
|
||||
vuMeterShowPeak,
|
||||
vuMeterPeakHoldDurationInMilliseconds,
|
||||
vuMeterReleasePerSecond,
|
||||
vuMeterPeakReleasePerSecond,
|
||||
volume,
|
||||
isMuted);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -353,6 +523,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
/// <param name="isGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="replayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls, or not.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <returns>An <see cref="Result{TValue}"/> representing either a successful update, or an error.</returns>
|
||||
public Result<Updated> UpdateSettings(
|
||||
bool isPaginationEnabled,
|
||||
@@ -367,7 +546,16 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
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)
|
||||
{
|
||||
IsPaginationEnabled = isPaginationEnabled;
|
||||
ItemsPerPage = itemsPerPage;
|
||||
@@ -382,6 +570,15 @@ public class UserSettings : AggregateRoot<UserSettingsId>
|
||||
IsGaplessPlaybackEnabled = isGaplessPlaybackEnabled;
|
||||
ReplayGainMode = replayGainMode;
|
||||
StreamingQuality = streamingQuality;
|
||||
VuMeterOrientation = vuMeterOrientation;
|
||||
VuMeterSegmentCount = vuMeterSegmentCount;
|
||||
VuMeterSegmentGap = vuMeterSegmentGap;
|
||||
VuMeterMediumThreshold = vuMeterMediumThreshold;
|
||||
VuMeterHighThreshold = vuMeterHighThreshold;
|
||||
VuMeterShowPeak = vuMeterShowPeak;
|
||||
VuMeterPeakHoldDurationInMilliseconds = vuMeterPeakHoldDurationInMilliseconds;
|
||||
VuMeterReleasePerSecond = vuMeterReleasePerSecond;
|
||||
VuMeterPeakReleasePerSecond = vuMeterPeakReleasePerSecond;
|
||||
return Result.Updated;
|
||||
}
|
||||
|
||||
|
||||
+46
-1
@@ -22,6 +22,30 @@ public class GetUserSettingsEndpointSummary : Summary<GetUserSettingsEndpoint, E
|
||||
Summary = "Retrieves the settings of the current user.";
|
||||
Description = "Retrieves the settings of the current user. When no settings are stored for the user yet, the default settings are returned.";
|
||||
|
||||
ResponseParam<UserSettingsResponse>(r => r.UserId, "The unique identifier of the user that owns these settings.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.IsPaginationEnabled, "Whether pagination is enabled for the user, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ItemsPerPage, "The number of library items displayed per page when pagination is enabled.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldIgnoreThePrefixForAlphaPicker, "Whether the \"The\" prefix of library item titles is ignored by the alpha picker, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.IsThemeCachingEnabled, "Whether the theme data served to this user is cached, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldAggregateMetadataWhenMissing, "Whether the metadata of the media library items is aggregated from multiple providers, when fields are missing, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldAggregateArtworkWhenMissing, "Whether the artwork of the media library items is aggregated from multiple providers, when it is missing, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldRenderPdfAsImages, "Whether PDF books are rendered as page images for the user, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldPreserveBookStyles, "Whether the styles of the book content are preserved when it is rendered for the user, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldKeepDownloadingWhilePaused, "Whether the player keeps downloading a track while playback is paused, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ShouldAutoplay, "Whether the player continues playback at the end of an album or artist, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.IsGaplessPlaybackEnabled, "Whether the player transitions between consecutive tracks without a gap, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.ReplayGainMode, "The way ReplayGain normalization is applied to the tracks the user plays.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.StreamingQuality, "The quality cap applied to the audio the server normalizes for the user.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterOrientation, "The direction in which each channel of the VU meter of the audio player grows.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterSegmentCount, "The number of segments each channel of the VU meter is divided into.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterSegmentGap, "The gap, in pixels, between the segments and the channels of the VU meter.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterMediumThreshold, "The level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterHighThreshold, "The level, between 0 and 1, above which a segment of the VU meter is drawn with its high state.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterShowPeak, "Whether the VU meter holds the peak level of each channel after it falls, or not.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterPeakHoldDurationInMilliseconds, "The time, in milliseconds, a peak of the VU meter is held before it starts falling.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterReleasePerSecond, "The number of level units the display of the VU meter falls per second when the input level drops.");
|
||||
ResponseParam<UserSettingsResponse>(r => r.VuMeterPeakReleasePerSecond, "The number of level units the peak of the VU meter falls per second after its hold time elapsed.");
|
||||
|
||||
Response(200, "The settings of the current user are returned.",
|
||||
example: new UserSettingsResponse(
|
||||
UserId: Guid.NewGuid(),
|
||||
@@ -37,7 +61,16 @@ public class GetUserSettingsEndpointSummary : Summary<GetUserSettingsEndpoint, E
|
||||
ShouldAutoplay: true,
|
||||
IsGaplessPlaybackEnabled: true,
|
||||
ReplayGainMode: ReplayGainMode.Off,
|
||||
StreamingQuality: PlaybackStreamingQuality.Auto
|
||||
StreamingQuality: PlaybackStreamingQuality.Auto,
|
||||
VuMeterOrientation: VuMeterOrientation.Vertical,
|
||||
VuMeterSegmentCount: 12,
|
||||
VuMeterSegmentGap: 1,
|
||||
VuMeterMediumThreshold: 0.6,
|
||||
VuMeterHighThreshold: 0.8,
|
||||
VuMeterShowPeak: true,
|
||||
VuMeterPeakHoldDurationInMilliseconds: 650,
|
||||
VuMeterReleasePerSecond: 3.0,
|
||||
VuMeterPeakReleasePerSecond: 0.65
|
||||
));
|
||||
|
||||
Response(401, "Authentication required.", "application/problem+json",
|
||||
@@ -69,5 +102,17 @@ public class GetUserSettingsEndpointSummary : Summary<GetUserSettingsEndpoint, E
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Response(403, "The request failed because the authenticated request does not carry the identity of a user.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
type = "https://tools.ietf.org/html/rfc9110#section-15.5.4",
|
||||
title = "General.Unauthorized",
|
||||
status = 403,
|
||||
detail = "NotAuthorized",
|
||||
instance = "/api/v1/users/me/settings",
|
||||
traceId = "00-a712bbf99ca8ab485f86a762ae5ae74d-b3a2eb78813b0a5d-00"
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
+50
-2
@@ -35,7 +35,16 @@ public class UpdateUserSettingsEndpointSummary : Summary<UpdateUserSettingsEndpo
|
||||
ShouldAutoplay: true,
|
||||
IsGaplessPlaybackEnabled: true,
|
||||
ReplayGainMode: ReplayGainMode.Off,
|
||||
StreamingQuality: PlaybackStreamingQuality.Auto
|
||||
StreamingQuality: PlaybackStreamingQuality.Auto,
|
||||
VuMeterOrientation: VuMeterOrientation.Vertical,
|
||||
VuMeterSegmentCount: 12,
|
||||
VuMeterSegmentGap: 1,
|
||||
VuMeterMediumThreshold: 0.6,
|
||||
VuMeterHighThreshold: 0.8,
|
||||
VuMeterShowPeak: true,
|
||||
VuMeterPeakHoldDurationInMilliseconds: 650,
|
||||
VuMeterReleasePerSecond: 3.0,
|
||||
VuMeterPeakReleasePerSecond: 0.65
|
||||
);
|
||||
|
||||
RequestParam(r => r.IsPaginationEnabled, "Whether pagination is enabled for the user, or not. Required.");
|
||||
@@ -51,6 +60,15 @@ public class UpdateUserSettingsEndpointSummary : Summary<UpdateUserSettingsEndpo
|
||||
RequestParam(r => r.IsGaplessPlaybackEnabled, "Whether the player transitions between consecutive tracks without a gap, or not. Required.");
|
||||
RequestParam(r => r.ReplayGainMode, "The way ReplayGain normalization is applied to the tracks the user plays. Required.");
|
||||
RequestParam(r => r.StreamingQuality, "The quality cap applied to the audio the server normalizes for the user. Required.");
|
||||
RequestParam(r => r.VuMeterOrientation, "The direction in which each channel of the VU meter of the audio player grows. Required.");
|
||||
RequestParam(r => r.VuMeterSegmentCount, "The number of segments each channel of the VU meter is divided into. Required.");
|
||||
RequestParam(r => r.VuMeterSegmentGap, "The gap, in pixels, between the segments and the channels of the VU meter. Required.");
|
||||
RequestParam(r => r.VuMeterMediumThreshold, "The level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state. Required.");
|
||||
RequestParam(r => r.VuMeterHighThreshold, "The level, between 0 and 1, above which a segment of the VU meter is drawn with its high state. Required.");
|
||||
RequestParam(r => r.VuMeterShowPeak, "Whether the VU meter holds the peak level of each channel after it falls, or not. Required.");
|
||||
RequestParam(r => r.VuMeterPeakHoldDurationInMilliseconds, "The time, in milliseconds, a peak of the VU meter is held before it starts falling. Required.");
|
||||
RequestParam(r => r.VuMeterReleasePerSecond, "The number of level units the display of the VU meter falls per second when the input level drops. Required.");
|
||||
RequestParam(r => r.VuMeterPeakReleasePerSecond, "The number of level units the peak of the VU meter falls per second after its hold time elapsed. Required.");
|
||||
|
||||
Response(200, "The settings of the current user were successfully updated.");
|
||||
|
||||
@@ -84,6 +102,18 @@ public class UpdateUserSettingsEndpointSummary : Summary<UpdateUserSettingsEndpo
|
||||
}
|
||||
);
|
||||
|
||||
Response(403, "The request failed because the authenticated request does not carry the identity of a user.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
type = "https://tools.ietf.org/html/rfc9110#section-15.5.4",
|
||||
title = "General.Unauthorized",
|
||||
status = 403,
|
||||
detail = "NotAuthorized",
|
||||
instance = "/api/v1/users/me/settings",
|
||||
traceId = "00-a712bbf99ca8ab485f86a762ae5ae74d-b3a2eb78813b0a5d-00"
|
||||
}
|
||||
);
|
||||
|
||||
Response(422, "The request did not pass validation checks.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
@@ -104,7 +134,25 @@ public class UpdateUserSettingsEndpointSummary : Summary<UpdateUserSettingsEndpo
|
||||
"ReplayGainModeCannotBeNull",
|
||||
"StreamingQualityCannotBeNull",
|
||||
"InvalidReplayGainMode",
|
||||
"InvalidStreamingQuality"
|
||||
"InvalidStreamingQuality",
|
||||
"VuMeterOrientationCannotBeNull",
|
||||
"InvalidVuMeterOrientation",
|
||||
"VuMeterSegmentCountCannotBeNull",
|
||||
"VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight",
|
||||
"VuMeterSegmentGapCannotBeNull",
|
||||
"VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo",
|
||||
"VuMeterMediumThresholdCannotBeNull",
|
||||
"VuMeterMediumThresholdMustBeBetweenZeroAndOne",
|
||||
"VuMeterHighThresholdCannotBeNull",
|
||||
"VuMeterHighThresholdMustBeBetweenZeroAndOne",
|
||||
"VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold",
|
||||
"VuMeterShowPeakCannotBeNull",
|
||||
"VuMeterPeakHoldDurationCannotBeNull",
|
||||
"VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds",
|
||||
"VuMeterReleasePerSecondCannotBeNull",
|
||||
"VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred",
|
||||
"VuMeterPeakReleasePerSecondCannotBeNull",
|
||||
"VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -84,4 +84,49 @@ public class UserSettingsDto
|
||||
/// 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 direction in which each channel of the VU meter of the audio player grows.
|
||||
/// </summary>
|
||||
public VuMeterOrientation? VuMeterOrientation { get; set; } = Enums.AudioLibrary.VuMeterOrientation.Vertical;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of segments each channel of the VU meter is divided into.
|
||||
/// </summary>
|
||||
public int? VuMeterSegmentCount { get; set; } = 12;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the gap, in pixels, between the segments and the channels of the VU meter.
|
||||
/// </summary>
|
||||
public int? VuMeterSegmentGap { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the level, between 0 and 1, above which a segment of the VU meter is drawn with its medium state.
|
||||
/// </summary>
|
||||
public double? VuMeterMediumThreshold { get; set; } = 0.6;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the level, between 0 and 1, above which a segment of the VU meter is drawn with its high state.
|
||||
/// </summary>
|
||||
public double? VuMeterHighThreshold { get; set; } = 0.8;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the VU meter holds the peak level of each channel after it falls, or not.
|
||||
/// </summary>
|
||||
public bool? VuMeterShowPeak { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time, in milliseconds, a peak of the VU meter is held before it starts falling.
|
||||
/// </summary>
|
||||
public int? VuMeterPeakHoldDurationInMilliseconds { get; set; } = 650;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of level units the display of the VU meter falls per second when the input level drops.
|
||||
/// </summary>
|
||||
public double? VuMeterReleasePerSecond { get; set; } = 3.0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of level units the peak of the VU meter falls per second after its hold time elapsed.
|
||||
/// </summary>
|
||||
public double? VuMeterPeakReleasePerSecond { get; set; } = 0.65;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the direction in which each channel of the VU meter of the audio player grows.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{ToString()}")]
|
||||
public enum VuMeterOrientation
|
||||
{
|
||||
/// <summary>
|
||||
/// The channels of the meter are columns and their levels grow from bottom to top.
|
||||
/// </summary>
|
||||
Vertical,
|
||||
|
||||
/// <summary>
|
||||
/// The channels of the meter are rows and their levels grow from left to right.
|
||||
/// </summary>
|
||||
Horizontal,
|
||||
}
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>يجب ألا يتجاوز عدد المقطوعات العشوائية 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن يكون انخفاض مقياس VU فارغًا!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن يكون عدد مقاطع مقياس VU فارغًا!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>يجب أن يكون انخفاض مقياس VU بين 0 و100 في الثانية!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>يجب أن تكون مدة تثبيت القمم لمقياس VU بين 0 و10000 مللي ثانية!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>اتجاه مقياس VU غير صالح!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>يجب أن يكون عدد مقاطع مقياس VU بين 1 و128!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن يكون تفضيل عرض القمم لمقياس VU فارغًا!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>يجب أن تكون العتبة المتوسطة لمقياس VU بين 0 و1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>يجب أن يكون انخفاض القمم لمقياس VU بين 0 و100 في الثانية!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن تكون المسافة بين مقاطع مقياس VU فارغة!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>يجب أن تكون المسافة بين مقاطع مقياس VU بين 0 و32!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن تكون مدة تثبيت القمم لمقياس VU فارغة!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن تكون اتجاهات مقياس VU فارغة!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن تكون العتبة المتوسطة لمقياس VU فارغة!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>يجب أن تكون العتبة العالية لمقياس VU بين 0 و1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن يكون انخفاض القمم لمقياس VU فارغًا!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>يجب أن تكون العتبة العالية لمقياس VU أكبر من أو تساوي العتبة المتوسطة!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن تكون العتبة العالية لمقياس VU فارغة!</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Die Anzahl der Shuffle-Titel darf höchstens 500 betragen!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>Der Rückgang des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>Die Segmentanzahl des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>Der Rückgang des VU-Meters muss zwischen 0 und 100 pro Sekunde liegen!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>Die Haltedauer der Spitzenwerte des VU-Meters muss zwischen 0 und 10000 Millisekunden liegen!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Ungültige Ausrichtung des VU-Meters!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>Die Segmentanzahl des VU-Meters muss zwischen 1 und 128 liegen!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>Die Einstellung zum Anzeigen der Spitzenwerte des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Der mittlere Schwellenwert des VU-Meters muss zwischen 0 und 1 liegen!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>Der Rückgang der Spitzenwerte des VU-Meters muss zwischen 0 und 100 pro Sekunde liegen!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>Der Segmentabstand des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>Der Segmentabstand des VU-Meters muss zwischen 0 und 32 liegen!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>Die Haltedauer der Spitzenwerte des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>Die Ausrichtung des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Der mittlere Schwellenwert des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Der hohe Schwellenwert des VU-Meters muss zwischen 0 und 1 liegen!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>Der Rückgang der Spitzenwerte des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>Der hohe Schwellenwert des VU-Meters muss größer oder gleich dem mittleren Schwellenwert sein!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Der hohe Schwellenwert des VU-Meters darf nicht null sein!</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>The shuffle track count must be at most 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter release cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter segment count cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>The VU meter release must be between 0 and 100 per second!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>The VU meter peak hold duration must be between 0 and 10000 milliseconds!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Invalid VU meter orientation!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>The VU meter segment count must be between 1 and 128!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter show peak preference cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>The VU meter medium threshold must be between 0 and 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>The VU meter peak release must be between 0 and 100 per second!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter segment gap cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>The VU meter segment gap must be between 0 and 32!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter peak hold duration cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter orientation cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter medium threshold cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>The VU meter high threshold must be between 0 and 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter peak release cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>The VU meter high threshold must be greater than or equal to the medium threshold!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter high threshold cannot be null!</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>¡La cantidad de pistas de reproducción aleatoria no debe superar 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>La caída del vúmetro no puede ser nula.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>El número de segmentos del vúmetro no puede ser nulo.</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>La caída del vúmetro debe estar entre 0 y 100 por segundo.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>La duración de retención de los picos del vúmetro debe estar entre 0 y 10000 milisegundos.</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>¡Orientación del vúmetro no válida!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>El número de segmentos del vúmetro debe estar entre 1 y 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>La preferencia de mostrar los picos del vúmetro no puede ser nula.</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>El umbral medio del vúmetro debe estar entre 0 y 1.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>La caída de los picos del vúmetro debe estar entre 0 y 100 por segundo.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>La separación de los segmentos del vúmetro no puede ser nula.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>La separación de los segmentos del vúmetro debe estar entre 0 y 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>La duración de retención de los picos del vúmetro no puede ser nula.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>La orientación del vúmetro no puede ser nula.</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>El umbral medio del vúmetro no puede ser nulo.</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>El umbral alto del vúmetro debe estar entre 0 y 1.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>La caída de los picos del vúmetro no puede ser nula.</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>El umbral alto del vúmetro debe ser mayor o igual que el umbral medio.</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>El umbral alto del vúmetro no puede ser nulo.</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Le nombre de pistes du shuffle ne doit pas dépasser 500 !</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>La décroissance du vumètre ne peut pas être nulle !</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>Le nombre de segments du vumètre ne peut pas être nul !</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>La décroissance du vumètre doit être comprise entre 0 et 100 par seconde !</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>La durée de maintien des crêtes du vumètre doit être comprise entre 0 et 10000 millisecondes !</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientation du vumètre non valide !</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>Le nombre de segments du vumètre doit être compris entre 1 et 128 !</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>La préférence d'affichage des crêtes du vumètre ne peut pas être nulle !</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Le seuil moyen du vumètre doit être compris entre 0 et 1 !</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>La décroissance des crêtes du vumètre doit être comprise entre 0 et 100 par seconde !</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>L'espacement des segments du vumètre ne peut pas être nul !</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>L'espacement des segments du vumètre doit être compris entre 0 et 32 !</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>La durée de maintien des crêtes du vumètre ne peut pas être nulle !</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>L'orientation du vumètre ne peut pas être nulle !</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Le seuil moyen du vumètre ne peut pas être nul !</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Le seuil élevé du vumètre doit être compris entre 0 et 1 !</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>La décroissance des crêtes du vumètre ne peut pas être nulle !</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>Le seuil élevé du vumètre doit être supérieur ou égal au seuil moyen !</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Le seuil élevé du vumètre ne peut pas être nul !</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Il numero di brani dello shuffle non può superare 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>La caduta del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>Il numero di segmenti del vumetro non può essere nullo.</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>La caduta del vumetro deve essere compresa tra 0 e 100 al secondo.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>La durata di mantenimento dei picchi del vumetro deve essere compresa tra 0 e 10000 millisecondi.</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientamento del vumetro non valido!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>Il numero di segmenti del vumetro deve essere compreso tra 1 e 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>La preferenza di mostrare i picchi del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>La soglia media del vumetro deve essere compresa tra 0 e 1.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>La caduta dei picchi del vumetro deve essere compresa tra 0 e 100 al secondo.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>La spaziatura dei segmenti del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>La spaziatura dei segmenti del vumetro deve essere compresa tra 0 e 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>La durata di mantenimento dei picchi del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>L'orientamento del vumetro non può essere nullo.</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>La soglia media del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>La soglia alta del vumetro deve essere compresa tra 0 e 1.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>La caduta dei picchi del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>La soglia alta del vumetro deve essere maggiore o uguale alla soglia media.</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>La soglia alta del vumetro non può essere nulla.</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>シャッフルするトラック数は 500 以下である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターの減衰はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターのセグメント数はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>VUメーターの減衰は毎秒0から100の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>VUメーターのピーク保持時間は0から10000ミリ秒の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>VUメーターの向きが無効です。</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>VUメーターのセグメント数は1から128の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターのピーク表示設定はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>VUメーターの中間しきい値は0から1の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>VUメーターのピーク減衰は毎秒0から100の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターのセグメント間隔はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>VUメーターのセグメント間隔は0から32の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターのピーク保持時間はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターの向きはnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターの中間しきい値はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>VUメーターの高いしきい値は0から1の間である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターのピーク減衰はnullにできません。</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>VUメーターの高いしきい値は中間しきい値以上である必要があります。</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>VUメーターの高いしきい値はnullにできません。</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>The shuffle track count must be at most 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter release cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter segment count cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>The VU meter release must be between 0 and 100 per second!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>The VU meter peak hold duration must be between 0 and 10000 milliseconds!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Invalid VU meter orientation!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>The VU meter segment count must be between 1 and 128!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter show peak preference cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>The VU meter medium threshold must be between 0 and 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>The VU meter peak release must be between 0 and 100 per second!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter segment gap cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>The VU meter segment gap must be between 0 and 32!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter peak hold duration cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter orientation cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter medium threshold cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>The VU meter high threshold must be between 0 and 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter peak release cannot be null!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>The VU meter high threshold must be greater than or equal to the medium threshold!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>The VU meter high threshold cannot be null!</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Numărul de piste pentru redare aleatorie nu poate depăși 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>Scăderea vumetrului nu poate fi nulă!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>Numărul de segmente al vumetrului nu poate fi nul!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>Scăderea vumetrului trebuie să fie între 0 și 100 pe secundă!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>Durata de menținere a vârfurilor vumetrului trebuie să fie între 0 și 10000 de milisecunde!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientare nevalidă a vumetrului!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>Numărul de segmente al vumetrului trebuie să fie între 1 și 128!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>Preferința de afișare a vârfurilor vumetrului nu poate fi nulă!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Pragul mediu al vumetrului trebuie să fie între 0 și 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>Scăderea vârfurilor vumetrului trebuie să fie între 0 și 100 pe secundă!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>Spațiul dintre segmentele vumetrului nu poate fi nul!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>Spațiul dintre segmentele vumetrului trebuie să fie între 0 și 32!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>Durata de menținere a vârfurilor vumetrului nu poate fi nulă!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>Orientarea vumetrului nu poate fi nulă!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Pragul mediu al vumetrului nu poate fi nul!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Pragul ridicat al vumetrului trebuie să fie între 0 și 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>Scăderea vârfurilor vumetrului nu poate fi nulă!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>Pragul ridicat al vumetrului trebuie să fie mai mare sau egal cu pragul mediu!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Pragul ridicat al vumetrului nu poate fi nul!</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Кількість треків для перемішування не може перевищувати 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>Спад VU-метра не може бути порожнім!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>Кількість сегментів VU-метра не може бути порожньою!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>Спад VU-метра має бути від 0 до 100 за секунду!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>Тривалість утримання піків VU-метра має бути від 0 до 10000 мілісекунд!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>Недійсна орієнтація VU-метра!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>Кількість сегментів VU-метра має бути від 1 до 128!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>Налаштування показу піків VU-метра не може бути порожнім!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Середній поріг VU-метра має бути від 0 до 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>Спад піків VU-метра має бути від 0 до 100 за секунду!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>Проміжок між сегментами VU-метра не може бути порожнім!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>Проміжок між сегментами VU-метра має бути від 0 до 32!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>Тривалість утримання піків VU-метра не може бути порожньою!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>Орієнтація VU-метра не може бути порожньою!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Середній поріг VU-метра не може бути порожнім!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>Високий поріг VU-метра має бути від 0 до 1!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>Спад піків VU-метра не може бути порожнім!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>Високий поріг VU-метра має бути більшим або дорівнювати середньому порогу!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>Високий поріг VU-метра не може бути порожнім!</value>
|
||||
</data>
|
||||
</root>
|
||||
+54
@@ -849,4 +849,58 @@
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>随机播放曲目数不能超过 500!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的衰落速度不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的段数不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>VU 表的衰落速度必须介于每秒 0 到 100 之间!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds" xml:space="preserve">
|
||||
<value>VU 表的峰值保持时间必须在 0 到 10000 毫秒之间!</value>
|
||||
</data>
|
||||
<data name="InvalidVuMeterOrientation" xml:space="preserve">
|
||||
<value>VU 表的方向无效!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight" xml:space="preserve">
|
||||
<value>VU 表的段数必须在 1 到 128 之间!</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeakCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的峰值显示首选项不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>VU 表的中等阈值必须在 0 到 1 之间!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred" xml:space="preserve">
|
||||
<value>VU 表的峰值衰落速度必须介于每秒 0 到 100 之间!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的段间距不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo" xml:space="preserve">
|
||||
<value>VU 表的段间距必须在 0 到 32 之间!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDurationCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的峰值保持时间不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的方向不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的中等阈值不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeBetweenZeroAndOne" xml:space="preserve">
|
||||
<value>VU 表的高阈值必须在 0 到 1 之间!</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecondCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的峰值衰落速度不能为空!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold" xml:space="preserve">
|
||||
<value>VU 表的高阈值必须大于或等于中等阈值!</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThresholdCannotBeNull" xml:space="preserve">
|
||||
<value>VU 表的高阈值不能为空!</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>عالية (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>عدد المقاطع التي تنقسم إليها كل قناة من مقياس VU، بين 1 و128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>انخفاض القمم</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>المستوى بين 0 و1 الذي يُرسم فوقه المقطع بالحالة العالية. يجب أن يكون على الأقل مساويًا للعتبة المتوسطة.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>ما إذا كانت قنوات مقياس VU تنمو من الأسفل إلى الأعلى أو من اليسار إلى اليمين.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>المستوى بين 0 و1 الذي يُرسم فوقه المقطع بالحالة المتوسطة.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>عمودي</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>انخفاض المستوى</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>أفقي</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>الاتجاه</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>العتبة العالية</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>المقاطع لكل قناة</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>العتبة المتوسطة</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>مقياس VU</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>تثبيت القمم (مللي ثانية)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>ما إذا كانت كل قناة تحتفظ بعلامة عند أعلى مستوى حديث لها.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>عدد وحدات المستوى التي تنخفضها علامة القمة في الثانية بعد مدة تثبيتها، بين 0 و100. القيم الأعلى تنخفض أسرع.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>مدة تثبيت علامة القمة بالمللي ثانية قبل أن تبدأ في الانخفاض، بين 0 و10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>إظهار القمم</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>المسافة بالبكسل بين مقاطع مقياس VU وقنواته، بين 0 و32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>المسافة بين المقاطع</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>عدد وحدات المستوى التي تنخفضها القناة في الثانية بعد انخفاض الصوت، بين 0 و100. القيم الأعلى تنخفض أسرع.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>Hoch (320 kbit/s)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>In wie viele Segmente jeder Kanal des VU-Meters unterteilt wird, zwischen 1 und 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Rückgang der Spitzenwerte</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Der Pegel zwischen 0 und 1, ab dem ein Segment mit dem hohen Zustand gezeichnet wird. Er muss mindestens dem mittleren Schwellenwert entsprechen.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Ob die Kanäle des VU-Meters von unten nach oben oder von links nach rechts wachsen.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Der Pegel zwischen 0 und 1, ab dem ein Segment mit dem mittleren Zustand gezeichnet wird.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Vertikal</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Pegelrückgang</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Horizontal</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Ausrichtung</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Hoher Schwellenwert</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segmente pro Kanal</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Mittlerer Schwellenwert</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>VU-Meter</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Spitzenwert halten (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Ob jeder Kanal eine Markierung bei seinem lautesten letzten Pegel behält.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Wie viele Pegel-Einheiten eine Spitzenmarkierung pro Sekunde nach ihrer Haltezeit fällt, zwischen 0 und 100. Höhere Werte fallen schneller.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Wie lange eine Spitzenmarkierung in Millisekunden gehalten wird, bevor sie zu fallen beginnt, zwischen 0 und 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Spitzenwerte anzeigen</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Der Abstand in Pixeln zwischen den Segmenten und den Kanälen des VU-Meters, zwischen 0 und 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Segmentabstand</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Wie viele Pegel-Einheiten ein Kanal pro Sekunde nach dem Abklingen des Tons fällt, zwischen 0 und 100. Höhere Werte fallen schneller.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>High (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>How many segments each channel of the VU meter is divided into, between 1 and 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Peak falloff</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>The level, between 0 and 1, above which a segment is drawn with the high state. It must be at least the medium threshold.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Whether the channels of the VU meter grow upwards from the bottom, or rightwards from the left.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>The level, between 0 and 1, above which a segment is drawn with the medium state.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Vertical</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Level falloff</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Horizontal</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientation</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>High threshold</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segments per channel</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Medium threshold</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>VU meter</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Peak hold (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Whether each channel holds a mark at its loudest recent level.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>How many level units a peak mark falls per second after its hold time, between 0 and 100. Higher values fall faster.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>How long, in milliseconds, a peak mark is held before it starts falling, between 0 and 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Show peak</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>The gap, in pixels, between the segments and the channels of the VU meter, between 0 and 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Segment gap</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>How many level units a channel falls per second after the sound drops, between 0 and 100. Higher values fall faster.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>Alta (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>En cuántos segmentos se divide cada canal del vúmetro, entre 1 y 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Caída de los picos</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>El nivel, entre 0 y 1, por encima del cual un segmento se dibuja con el estado alto. Debe ser al menos el umbral medio.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Indica si los canales del vúmetro crecen de abajo hacia arriba o de izquierda a derecha.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>El nivel, entre 0 y 1, por encima del cual un segmento se dibuja con el estado medio.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Vertical</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Caída del nivel</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Horizontal</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientación</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Umbral alto</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segmentos por canal</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Umbral medio</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>Vúmetro</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Retención de picos (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Indica si cada canal mantiene una marca en su nivel reciente más alto.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Cuántas unidades de nivel cae una marca de pico por segundo después de su tiempo de retención, entre 0 y 100. Los valores más altos caen más rápido.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Cuánto tiempo, en milisegundos, se mantiene una marca de pico antes de empezar a caer, entre 0 y 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Mostrar picos</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>La separación, en píxeles, entre los segmentos y los canales del vúmetro, entre 0 y 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Separación de segmentos</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Cuántas unidades de nivel cae un canal por segundo después de que el sonido baje, entre 0 y 100. Los valores más altos caen más rápido.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>Élevée (320 kbit/s)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Le nombre de segments dans lesquels chaque canal du vumètre est divisé, entre 1 et 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Décroissance des crêtes</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Le niveau, entre 0 et 1, au-dessus duquel un segment est dessiné avec l'état élevé. Il doit être au moins égal au seuil moyen.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Indique si les canaux du vumètre croissent du bas vers le haut ou de la gauche vers la droite.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Le niveau, entre 0 et 1, au-dessus duquel un segment est dessiné avec l'état moyen.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Verticale</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Décroissance du niveau</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Horizontale</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientation</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Seuil élevé</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segments par canal</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Seuil moyen</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>Vumètre</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Maintien des crêtes (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Indique si chaque canal conserve un repère à son niveau récent le plus fort.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Le nombre d'unités de niveau dont un repère de crête descend par seconde après sa durée de maintien, entre 0 et 100. Des valeurs plus élevées descendent plus vite.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>La durée, en millisecondes, pendant laquelle un repère de crête est maintenu avant de commencer à descendre, entre 0 et 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Afficher les crêtes</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>L'espacement, en pixels, entre les segments et les canaux du vumètre, entre 0 et 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Espacement des segments</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Le nombre d'unités de niveau dont un canal descend par seconde après la baisse du son, entre 0 et 100. Des valeurs plus élevées descendent plus vite.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>Alta (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>In quanti segmenti è diviso ogni canale del vumetro, tra 1 e 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Caduta dei picchi</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Il livello, tra 0 e 1, oltre il quale un segmento viene disegnato con lo stato alto. Deve essere almeno la soglia media.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Indica se i canali del vumetro crescono dal basso verso l'alto o da sinistra verso destra.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Il livello, tra 0 e 1, oltre il quale un segmento viene disegnato con lo stato medio.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Verticale</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Caduta del livello</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Orizzontale</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientamento</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Soglia alta</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segmenti per canale</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Soglia media</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>Vumetro</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Mantenimento dei picchi (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Indica se ogni canale mantiene un segno al suo livello recente più alto.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Quante unità di livello scende un segno di picco al secondo dopo il suo tempo di mantenimento, tra 0 e 100. Valori più alti scendono più rapidamente.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Per quanto tempo, in millisecondi, un segno di picco viene mantenuto prima di iniziare a scendere, tra 0 e 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Mostra picchi</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>La spaziatura, in pixel, tra i segmenti e i canali del vumetro, tra 0 e 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Spaziatura dei segmenti</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Quante unità di livello scende un canale al secondo dopo che il suono cala, tra 0 e 100. Valori più alti scendono più rapidamente.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>高 (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>VUメーターの各チャンネルを分割するセグメント数です。1から128の間で指定します。</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>ピークの減衰</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>セグメントを高い状態で描画するレベルです。0から1の間で指定し、中間しきい値以上である必要があります。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>VUメーターの各チャンネルが下から上へ伸びるか、左から右へ伸びるかを指定します。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>セグメントを中間状態で描画するレベルです。0から1の間で指定します。</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>垂直</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>レベルの減衰</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>水平</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>向き</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>高いしきい値</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>チャンネルあたりのセグメント数</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>中間しきい値</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>VUメーター</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>ピーク保持 (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>各チャンネルに直近の最大レベルの印を残すかどうかを指定します。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>保持時間の後、ピークの印が1秒あたりに下がるレベルの量です。0から100の間で指定します。値が大きいほど速く下がります。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>ピークの印が下がり始めるまで保持される時間をミリ秒単位で指定します。0から10000の間です。</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>ピークを表示</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>VUメーターのセグメントとチャンネルの間隔をピクセル単位で指定します。0から32の間です。</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>セグメント間隔</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>音が下がった後にチャンネルが1秒あたりに下がるレベルの量です。0から100の間で指定します。値が大きいほど速く下がります。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>High (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>How many segments each channel of the VU meter is divided into, between 1 and 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Peak falloff</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>The level, between 0 and 1, above which a segment is drawn with the high state. It must be at least the medium threshold.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Whether the channels of the VU meter grow upwards from the bottom, or rightwards from the left.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>The level, between 0 and 1, above which a segment is drawn with the medium state.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Vertical</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Level falloff</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Horizontal</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientation</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>High threshold</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segments per channel</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Medium threshold</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>VU meter</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Peak hold (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Whether each channel holds a mark at its loudest recent level.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>How many level units a peak mark falls per second after its hold time, between 0 and 100. Higher values fall faster.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>How long, in milliseconds, a peak mark is held before it starts falling, between 0 and 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Show peak</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>The gap, in pixels, between the segments and the channels of the VU meter, between 0 and 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Segment gap</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>How many level units a channel falls per second after the sound drops, between 0 and 100. Higher values fall faster.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>Ridicată (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>În câte segmente este împărțit fiecare canal al vumetrului, între 1 și 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Scăderea vârfurilor</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Nivelul, între 0 și 1, peste care un segment este desenat cu starea ridicată. Trebuie să fie cel puțin pragul mediu.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Dacă canalele vumetrului cresc de jos în sus sau de la stânga la dreapta.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Nivelul, între 0 și 1, peste care un segment este desenat cu starea medie.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Verticală</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Scăderea nivelului</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Orizontală</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Orientare</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Prag ridicat</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Segmente pe canal</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Prag mediu</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>Vumetru</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Menținerea vârfurilor (ms)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Dacă fiecare canal păstrează un marcaj la cel mai puternic nivel recent.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Câte unități de nivel scade un marcaj de vârf pe secundă după durata de menținere, între 0 și 100. Valorile mai mari scad mai repede.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Cât timp, în milisecunde, este menținut un marcaj de vârf înainte de a începe să scadă, între 0 și 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Afișează vârfurile</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Spațiul, în pixeli, dintre segmente și canalele vumetrului, între 0 și 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Spațiu între segmente</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Câte unități de nivel scade un canal pe secundă după ce sunetul scade, între 0 și 100. Valorile mai mari scad mai repede.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>Висока (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>На скільки сегментів поділено кожен канал VU-метра, від 1 до 128.</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Спад піків</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Рівень від 0 до 1, вище якого сегмент малюється у високому стані. Він має бути не меншим за середній поріг.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>Чи ростуть канали VU-метра знизу вгору або зліва направо.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Рівень від 0 до 1, вище якого сегмент малюється в середньому стані.</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>Вертикальна</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Спад рівня</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>Горизонтальна</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>Орієнтація</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>Високий поріг</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>Сегментів на канал</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>Середній поріг</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>VU-метр</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Утримання піків (мс)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>Чи залишає кожен канал позначку на своєму найгучнішому недавньому рівні.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>Скільки одиниць рівня позначка піку спадає за секунду після часу утримання, від 0 до 100. Більші значення спадають швидше.</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>Скільки мілісекунд позначка піку утримується перед тим, як почати спадати, від 0 до 10000.</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>Показувати піки</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Проміжок у пікселях між сегментами та каналами VU-метра, від 0 до 32.</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>Проміжок між сегментами</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>Скільки одиниць рівня канал спадає за секунду після зниження звуку, від 0 до 100. Більші значення спадають швидше.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -123,4 +123,67 @@
|
||||
<data name="StreamingQualityHigh" xml:space="preserve">
|
||||
<value>高 (320 kbps)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentCount" xml:space="preserve">
|
||||
<value>VU 表的每个通道分为多少段,介于 1 到 128 之间。</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>峰值衰落</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterHighThreshold" xml:space="preserve">
|
||||
<value>以高状态绘制段时所超过的电平,介于 0 到 1 之间。它必须大于或等于中等阈值。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterOrientation" xml:space="preserve">
|
||||
<value>VU 表的通道是从下向上增长,还是从左向右增长。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>以中等状态绘制段时所超过的电平,介于 0 到 1 之间。</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationVertical" xml:space="preserve">
|
||||
<value>垂直</value>
|
||||
</data>
|
||||
<data name="VuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>电平衰落</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientationHorizontal" xml:space="preserve">
|
||||
<value>水平</value>
|
||||
</data>
|
||||
<data name="VuMeterOrientation" xml:space="preserve">
|
||||
<value>方向</value>
|
||||
</data>
|
||||
<data name="VuMeterHighThreshold" xml:space="preserve">
|
||||
<value>高阈值</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentCount" xml:space="preserve">
|
||||
<value>每通道段数</value>
|
||||
</data>
|
||||
<data name="VuMeterMediumThreshold" xml:space="preserve">
|
||||
<value>中等阈值</value>
|
||||
</data>
|
||||
<data name="VuMeter" xml:space="preserve">
|
||||
<value>VU 表</value>
|
||||
</data>
|
||||
<data name="VuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>峰值保持(毫秒)</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterShowPeak" xml:space="preserve">
|
||||
<value>每个通道是否在其最近的最大电平处保留标记。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakReleasePerSecond" xml:space="preserve">
|
||||
<value>峰值标记在保持时间过后每秒下降的电平单位数,介于 0 到 100 之间。数值越大下降越快。</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterPeakHoldDuration" xml:space="preserve">
|
||||
<value>峰值标记在开始下降之前保持的时间(以毫秒为单位),介于 0 到 10000 之间。</value>
|
||||
</data>
|
||||
<data name="VuMeterShowPeak" xml:space="preserve">
|
||||
<value>显示峰值</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterSegmentGap" xml:space="preserve">
|
||||
<value>VU 表的段与通道之间的间距(以像素为单位),介于 0 到 32 之间。</value>
|
||||
</data>
|
||||
<data name="VuMeterSegmentGap" xml:space="preserve">
|
||||
<value>段间距</value>
|
||||
</data>
|
||||
<data name="DescriptionVuMeterReleasePerSecond" xml:space="preserve">
|
||||
<value>声音下降后通道每秒下降的电平单位数,介于 0 到 100 之间。数值越大下降越快。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -54,6 +54,14 @@
|
||||
geometry, so a theme consumes the properties to style each state and to give either bar its own shape and
|
||||
orientation. The player marks the bar with 'is-buffering' while it is loading, and carries the state in
|
||||
'data-audio-player-progress-state' ('idle', 'ready' or 'buffering') together with the slider ARIA attributes.
|
||||
- The VU meter root carries 'data-audio-player-vu-meter'. The player fills it with one 'audio-player-vu-channel'
|
||||
element per band, one 'audio-player-vu-segment' per segment of the channel, and one 'audio-player-vu-peak' per
|
||||
channel, and writes 'data-audio-player-vu-segment-state' ('active' or 'inactive'),
|
||||
'data-audio-player-vu-segment-zone' ('normal', 'medium' or 'high') and 'data-audio-player-vu-peak-state'
|
||||
('active' or 'inactive'). It publishes the segment gap and the peak position as the custom properties
|
||||
'--audio-player-vu-segment-gap' and '--audio-player-vu-peak-position'. The root sits between the album art and
|
||||
the current time label; a theme that does not render the hook gets the meter inserted there when the bar is bound.
|
||||
The meter is entirely theme-owned: the stylesheet decides its shape, orientation, size and colors.
|
||||
- Themed shells only: the plain text script elements that carry the raw source of the
|
||||
'shared/audio-player/queue-item' and 'shared/audio-player/playlist-item' sub templates, with the ids
|
||||
'audio-player-template-queue-item' and 'audio-player-template-playlist-item'. This application fallback partial
|
||||
@@ -102,9 +110,11 @@
|
||||
<ul class="audio-player-queue" data-audio-player-queue aria-label="@localizer["AudioPlayerQueue"]"></ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Condensed bar: transport controls, three state progress bar, volume, and track name. -->
|
||||
<!-- Condensed bar: transport controls, three state progress bar, volume, VU meter and track name. -->
|
||||
<div class="audio-player-bar">
|
||||
<img class="audio-player-cover-thumbnail" data-audio-player-cover-thumbnail alt="" />
|
||||
<!-- VU meter: one segmented channel per band. The script fills it, and a theme restyles every part. -->
|
||||
<div class="audio-player-vu-meter" data-audio-player-vu-meter aria-hidden="true"></div>
|
||||
<div class="audio-player-track-labels">
|
||||
<span class="audio-player-track-name" data-audio-player-track-name></span>
|
||||
<span class="audio-player-album-name" data-audio-player-album-name></span>
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
<script defer src="~/js/audio-player/audio-player-utils.js" asp-append-version="true"></script>
|
||||
<script defer src="~/js/audio-player/audio-player-errors.js" asp-append-version="true"></script>
|
||||
<script defer src="~/js/audio-player/audio-player-events.js" asp-append-version="true"></script>
|
||||
<script defer src="~/js/audio-player/audio-player-vu-meter.js" asp-append-version="true"></script>
|
||||
<script defer src="~/js/audio-player/audio-player-queue.js" asp-append-version="true"></script>
|
||||
<script defer src="~/js/audio-player/audio-player-download.js" asp-append-version="true"></script>
|
||||
<script defer src="~/js/audio-player/audio-player-render.js" asp-append-version="true"></script>
|
||||
|
||||
@@ -202,6 +202,106 @@
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionStreamingQuality"]</small>
|
||||
</div>
|
||||
<!-- VU meter. -->
|
||||
<div class="form-row">
|
||||
<h4 class="text-light-two w-100">@_localizer["VuMeter"]</h4>
|
||||
</div>
|
||||
<!-- Orientation. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterOrientation">@_localizer["VuMeterOrientation"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<select id="VuMeterOrientation" class="enlightenment-input">
|
||||
<option value="Vertical">@_localizer["VuMeterOrientationVertical"]</option>
|
||||
<option value="Horizontal">@_localizer["VuMeterOrientationHorizontal"]</option>
|
||||
</select>
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterOrientation"]</small>
|
||||
</div>
|
||||
<!-- Segment count. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterSegmentCount">@_localizer["VuMeterSegmentCount"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterSegmentCount" min="1" max="128" step="1" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterSegmentCount"]</small>
|
||||
</div>
|
||||
<!-- Segment gap. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterSegmentGap">@_localizer["VuMeterSegmentGap"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterSegmentGap" min="0" max="32" step="1" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterSegmentGap"]</small>
|
||||
</div>
|
||||
<!-- Medium threshold. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterMediumThreshold">@_localizer["VuMeterMediumThreshold"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterMediumThreshold" min="0" max="1" step="0.05" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterMediumThreshold"]</small>
|
||||
</div>
|
||||
<!-- High threshold. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterHighThreshold">@_localizer["VuMeterHighThreshold"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterHighThreshold" min="0" max="1" step="0.05" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterHighThreshold"]</small>
|
||||
</div>
|
||||
<!-- Show peak. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterShowPeak">@_localizer["VuMeterShowPeak"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<label class="enlightenment-checkbox-label">
|
||||
<input type="checkbox" id="VuMeterShowPeak" class="enlightenment-checkbox-hidden" />
|
||||
<span class="enlightenment-checkbox"></span>
|
||||
</label>
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterShowPeak"]</small>
|
||||
</div>
|
||||
<!-- Peak hold duration. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterPeakHoldDurationInMilliseconds">@_localizer["VuMeterPeakHoldDuration"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterPeakHoldDurationInMilliseconds" min="0" max="10000" step="50" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterPeakHoldDuration"]</small>
|
||||
</div>
|
||||
<!-- Display release. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterReleasePerSecond">@_localizer["VuMeterReleasePerSecond"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterReleasePerSecond" min="0" max="100" step="0.05" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterReleasePerSecond"]</small>
|
||||
</div>
|
||||
<!-- Peak release. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label for="VuMeterPeakReleasePerSecond">@_localizer["VuMeterPeakReleasePerSecond"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" id="VuMeterPeakReleasePerSecond" min="0" max="100" step="0.05" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionVuMeterPeakReleasePerSecond"]</small>
|
||||
</div>
|
||||
<div class="form-row" style="justify-content: center;">
|
||||
<button type="submit" class="confirm-button h-22px">@_localizer["Save"]</button>
|
||||
</div>
|
||||
@@ -231,6 +331,15 @@
|
||||
const checkboxIsGaplessPlaybackEnabled = document.getElementById('IsGaplessPlaybackEnabled');
|
||||
const selectReplayGainMode = document.getElementById('ReplayGainMode');
|
||||
const selectStreamingQuality = document.getElementById('StreamingQuality');
|
||||
const selectVuMeterOrientation = document.getElementById('VuMeterOrientation');
|
||||
const inputVuMeterSegmentCount = document.getElementById('VuMeterSegmentCount');
|
||||
const inputVuMeterSegmentGap = document.getElementById('VuMeterSegmentGap');
|
||||
const inputVuMeterMediumThreshold = document.getElementById('VuMeterMediumThreshold');
|
||||
const inputVuMeterHighThreshold = document.getElementById('VuMeterHighThreshold');
|
||||
const checkboxVuMeterShowPeak = document.getElementById('VuMeterShowPeak');
|
||||
const inputVuMeterPeakHoldDurationInMilliseconds = document.getElementById('VuMeterPeakHoldDurationInMilliseconds');
|
||||
const inputVuMeterReleasePerSecond = document.getElementById('VuMeterReleasePerSecond');
|
||||
const inputVuMeterPeakReleasePerSecond = document.getElementById('VuMeterPeakReleasePerSecond');
|
||||
|
||||
// Toggle the enabled state of the items per page input based on the pagination checkbox.
|
||||
function updateItemsPerPageEnabledState() {
|
||||
@@ -254,11 +363,25 @@
|
||||
checkboxIsGaplessPlaybackEnabled.checked = data.isGaplessPlaybackEnabled === true;
|
||||
selectReplayGainMode.value = data.replayGainMode ?? 'Off';
|
||||
selectStreamingQuality.value = data.streamingQuality ?? 'Auto';
|
||||
selectVuMeterOrientation.value = data.vuMeterOrientation ?? 'Vertical';
|
||||
inputVuMeterSegmentCount.value = data.vuMeterSegmentCount ?? 12;
|
||||
inputVuMeterSegmentGap.value = data.vuMeterSegmentGap ?? 1;
|
||||
inputVuMeterMediumThreshold.value = data.vuMeterMediumThreshold ?? 0.6;
|
||||
inputVuMeterHighThreshold.value = data.vuMeterHighThreshold ?? 0.8;
|
||||
checkboxVuMeterShowPeak.checked = data.vuMeterShowPeak !== false;
|
||||
inputVuMeterPeakHoldDurationInMilliseconds.value = data.vuMeterPeakHoldDurationInMilliseconds ?? 650;
|
||||
inputVuMeterReleasePerSecond.value = data.vuMeterReleasePerSecond ?? 3;
|
||||
inputVuMeterPeakReleasePerSecond.value = data.vuMeterPeakReleasePerSecond ?? 0.65;
|
||||
updateItemsPerPageEnabledState();
|
||||
}
|
||||
}
|
||||
|
||||
// Save the settings of the current user.
|
||||
// An empty numeric field is sent as null, so the server reports it as missing instead of reading it as zero.
|
||||
function readOptionalNumber(input) {
|
||||
return input.value.trim() === '' ? null : Number(input.value);
|
||||
}
|
||||
|
||||
async function handleSaveUserSettingsAsync() {
|
||||
const formData = {
|
||||
IsPaginationEnabled: checkboxIsPaginationEnabled.checked,
|
||||
@@ -273,11 +396,25 @@
|
||||
ShouldAutoplay: checkboxShouldAutoplay.checked,
|
||||
IsGaplessPlaybackEnabled: checkboxIsGaplessPlaybackEnabled.checked,
|
||||
ReplayGainMode: selectReplayGainMode.value,
|
||||
StreamingQuality: selectStreamingQuality.value
|
||||
StreamingQuality: selectStreamingQuality.value,
|
||||
VuMeterOrientation: selectVuMeterOrientation.value,
|
||||
VuMeterSegmentCount: readOptionalNumber(inputVuMeterSegmentCount),
|
||||
VuMeterSegmentGap: readOptionalNumber(inputVuMeterSegmentGap),
|
||||
VuMeterMediumThreshold: readOptionalNumber(inputVuMeterMediumThreshold),
|
||||
VuMeterHighThreshold: readOptionalNumber(inputVuMeterHighThreshold),
|
||||
VuMeterShowPeak: checkboxVuMeterShowPeak.checked,
|
||||
VuMeterPeakHoldDurationInMilliseconds: readOptionalNumber(inputVuMeterPeakHoldDurationInMilliseconds),
|
||||
VuMeterReleasePerSecond: readOptionalNumber(inputVuMeterReleasePerSecond),
|
||||
VuMeterPeakReleasePerSecond: readOptionalNumber(inputVuMeterPeakReleasePerSecond)
|
||||
};
|
||||
const data = await callApiPostAsync('@_urlService.GetAbsoluteUrl(WebRoutes.Settings.UPDATE_USER_SETTINGS)', formData);
|
||||
if (data && data.isUpdated === true)
|
||||
if (data && data.isUpdated === true) {
|
||||
notificationService.show('@_localizer["SettingsSaved"]', NotificationType.SUCCESS);
|
||||
// The player lives in the layout and is not recreated by the navigation manager, so the saved playback and
|
||||
// VU meter settings are handed to it directly instead of waiting for a full page reload.
|
||||
if (window.LuminaAudioPlayer && window.LuminaAudioPlayer.instance && typeof window.LuminaAudioPlayer.instance.reloadPreferencesAsync === 'function')
|
||||
await window.LuminaAudioPlayer.instance.reloadPreferencesAsync();
|
||||
}
|
||||
}
|
||||
|
||||
// On form submit event.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
html,
|
||||
html,
|
||||
body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
@@ -1380,6 +1380,14 @@ body {
|
||||
/* The expand and collapse duration is one value, so a theme can keep the height, fade and padding transitions in step by overriding this property on the container. */
|
||||
--audio-player-expanded-duration: 0.4s;
|
||||
transition: height var(--audio-player-expanded-duration) ease;
|
||||
/* The VU meter palette is declared on the container so a theme overrides it on the
|
||||
container or on the meter root, and every channel, segment and peak marker inherits the override. */
|
||||
--audio-player-vu-normal-color: #0099FF;
|
||||
--audio-player-vu-medium-color: #FFD166;
|
||||
--audio-player-vu-high-color: #FF5D5D;
|
||||
--audio-player-vu-inactive-color: transparent;
|
||||
--audio-player-vu-peak-color: #F4F7FA;
|
||||
--audio-player-vu-background-color: transparent;
|
||||
}
|
||||
|
||||
.audio-player-container.not-shown {
|
||||
@@ -1459,6 +1467,118 @@ html.audio-player-initializing .audio-player-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* VU meter. The player renders one channel per band and one segment per channel, and writes only the state and zone of
|
||||
each segment and the position of each peak, so a theme restyles the whole meter from these rules or replaces them. The
|
||||
colors are custom properties declared on the container, so overriding them on the container or on a theme selector is
|
||||
enough to recolor every segment. The meter publishes the configured segment gap as '--audio-player-vu-segment-gap', the
|
||||
segment count as '--audio-player-vu-segment-count', the channel count as '--audio-player-vu-band-count' and the peak position as '--audio-player-vu-peak-position'. */
|
||||
.audio-player-vu-meter {
|
||||
--audio-player-vu-cell: 3px;
|
||||
--audio-player-vu-extent: 48px;
|
||||
--audio-player-vu-max-cell: 4px;
|
||||
--audio-player-vu-row: 1px;
|
||||
--audio-player-vu-run: 8px;
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
gap: var(--audio-player-vu-segment-gap, 1px);
|
||||
overflow: hidden;
|
||||
background-color: var(--audio-player-vu-background-color, transparent);
|
||||
}
|
||||
|
||||
@supports (width: round(down, 5px, 1px)) {
|
||||
.audio-player-vu-meter {
|
||||
--audio-player-vu-cell: max(1px, round(down, min(var(--audio-player-vu-max-cell), calc((var(--audio-player-vu-extent) - (var(--audio-player-vu-segment-count, 12) - 1) * var(--audio-player-vu-segment-gap, 1px)) / var(--audio-player-vu-segment-count, 12))), 1px));
|
||||
--audio-player-vu-row: max(1px, round(down, calc((var(--audio-player-vu-extent) - (var(--audio-player-vu-band-count, 24) - 1) * var(--audio-player-vu-segment-gap, 1px)) / var(--audio-player-vu-band-count, 24)), 1px));
|
||||
}
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="vertical"] {
|
||||
flex-direction: row;
|
||||
width: calc(var(--audio-player-vu-band-count, 24) * var(--audio-player-vu-cell) + (var(--audio-player-vu-band-count, 24) - 1) * var(--audio-player-vu-segment-gap, 1px));
|
||||
height: calc(var(--audio-player-vu-segment-count, 12) * var(--audio-player-vu-cell) + (var(--audio-player-vu-segment-count, 12) - 1) * var(--audio-player-vu-segment-gap, 1px));
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="horizontal"] {
|
||||
flex-direction: column;
|
||||
width: calc(var(--audio-player-vu-segment-count, 12) * var(--audio-player-vu-run) + (var(--audio-player-vu-segment-count, 12) - 1) * var(--audio-player-vu-segment-gap, 1px));
|
||||
height: calc(var(--audio-player-vu-band-count, 24) * var(--audio-player-vu-row) + (var(--audio-player-vu-band-count, 24) - 1) * var(--audio-player-vu-segment-gap, 1px));
|
||||
}
|
||||
|
||||
.audio-player-vu-channel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
gap: var(--audio-player-vu-segment-gap, 1px);
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="vertical"] .audio-player-vu-channel {
|
||||
flex-direction: column-reverse;
|
||||
width: var(--audio-player-vu-cell);
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="horizontal"] .audio-player-vu-channel {
|
||||
flex-direction: row;
|
||||
height: var(--audio-player-vu-row);
|
||||
}
|
||||
|
||||
/* A segment is inactive until the level reaches it, and it takes its zone color only while it is active. The zone is
|
||||
part of the markup, so a theme can give each of the three independently. */
|
||||
.audio-player-vu-segment {
|
||||
flex: 0 0 auto;
|
||||
background-color: var(--audio-player-vu-inactive-color, transparent);
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="vertical"] .audio-player-vu-segment {
|
||||
width: var(--audio-player-vu-cell);
|
||||
height: var(--audio-player-vu-cell);
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="horizontal"] .audio-player-vu-segment {
|
||||
width: var(--audio-player-vu-run);
|
||||
height: var(--audio-player-vu-row);
|
||||
}
|
||||
|
||||
.audio-player-vu-segment[data-audio-player-vu-segment-state="active"][data-audio-player-vu-segment-zone="normal"] {
|
||||
background-color: var(--audio-player-vu-normal-color, #0099FF);
|
||||
}
|
||||
|
||||
.audio-player-vu-segment[data-audio-player-vu-segment-state="active"][data-audio-player-vu-segment-zone="medium"] {
|
||||
background-color: var(--audio-player-vu-medium-color, #FFD166);
|
||||
}
|
||||
|
||||
.audio-player-vu-segment[data-audio-player-vu-segment-state="active"][data-audio-player-vu-segment-zone="high"] {
|
||||
background-color: var(--audio-player-vu-high-color, #FF5D5D);
|
||||
}
|
||||
|
||||
/* The peak marker spans the short axis of its channel and is placed on the long axis from the custom property, so the
|
||||
same markup serves both orientations: a theme only maps the property to whichever edge its own layout grows from. */
|
||||
.audio-player-vu-peak {
|
||||
position: absolute;
|
||||
background-color: var(--audio-player-vu-peak-color, #F4F7FA);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.audio-player-vu-peak[data-audio-player-vu-peak-state="active"] {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="vertical"] .audio-player-vu-peak {
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: var(--audio-player-vu-peak-position, 0%);
|
||||
height: 2px;
|
||||
transform: translateY(50%);
|
||||
}
|
||||
|
||||
.audio-player-vu-meter[data-audio-player-vu-meter-orientation="horizontal"] .audio-player-vu-peak {
|
||||
top: 0px;
|
||||
bottom: 0px;
|
||||
left: var(--audio-player-vu-peak-position, 0%);
|
||||
width: 2px;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.audio-player-time {
|
||||
flex: 0 0 auto;
|
||||
font-size: 12px;
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
* - getBufferedTimeRanges(): the time ranges, in seconds, the engine already downloaded, as a list of objects with
|
||||
* a 'start' and an 'end'. It is optional: an engine that does not implement it makes the player unable to tell
|
||||
* whether a seek target is buffered, in which case the player never shows a loading state for a seek.
|
||||
* - getOutputAnalyser() (optional): the AnalyserNode that taps the sound the engine outputs, after its ReplayGain
|
||||
* normalization but before its output volume and mute state, or null when the engine cannot expose one. The player
|
||||
* hands it to the VU meter of the bar, which reads it on every animation frame; tapping before the volume is what
|
||||
* keeps the meter height independent of the volume setting. The node must stay valid for as long as the engine lives:
|
||||
* the player binds it once, when a track was loaded, and the renderer keeps the same node across the tracks it plays.
|
||||
* An engine that does not implement this method, or that returns null, makes the bar render an empty meter.
|
||||
* - discardCurrentAsync() (optional): releases the currently prepared track without destroying the engine, so a stop
|
||||
* during an automatic continuation does not leave the track it started loaded behind an idle player.
|
||||
* - cancelUpcomingAsync() (optional): drops a prefetched or appended handoff of the current track when the player queue is
|
||||
|
||||
+10
@@ -653,6 +653,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the analyzer that taps the track level of the engine, which the VU meter of the bar reads. The analyzer of
|
||||
* the shared renderer sits before the output volume, so the meter does not change with the volume setting, and it
|
||||
* stays valid across the tracks the engine plays, because the renderer and its audio context are reused.
|
||||
* @returns {AnalyserNode|null} The output analyzer, or null while no audio context has been created yet.
|
||||
*/
|
||||
getOutputAnalyser() {
|
||||
return this.renderer.getOutputAnalyser();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the engine was destroyed.
|
||||
* @returns {boolean} True when the engine was destroyed.
|
||||
|
||||
@@ -9,14 +9,16 @@
|
||||
*
|
||||
* Signal chain
|
||||
* ------------
|
||||
* Every scheduled source is connected to the per-track GainNode, which feeds the master GainNode, which feeds the
|
||||
* destination, so:
|
||||
* Every scheduled source is connected to the per-track GainNode, which feeds an AnalyserNode, which feeds the master GainNode, which feeds the destination, so:
|
||||
* - the master gain is the output volume, and it is zero while the player is muted, which is how mute is honored;
|
||||
* - the per-track gain is the ReplayGain linear gain of the current track, chosen by the user's ReplayGain mode among
|
||||
* the values the playback manifest carries.
|
||||
* - the per-track gain is the ReplayGain linear gain of the current track, chosen by the user's ReplayGain mode among the values the playback manifest carries;
|
||||
* - the analyzer sits after the per-track gain and before the master gain, so it observes the level of the track itself,
|
||||
* after its ReplayGain normalization but before the output volume. The VU meter of the bar reads it, which is why
|
||||
* changing the volume, or muting the player, never changes the height of the meter for the same moment of audio.
|
||||
* Keeping the master gain and the ReplayGain gain on two separate nodes lets either change without disturbing the other.
|
||||
* The engine of the player folds the mute state into the volume it passes, so it delivers a mute as setVolumeAsync(0)
|
||||
* and never calls setMutedAsync; that setter exists for a caller that owns both the volume and the mute state itself.
|
||||
* The analyzer is created only when the audio context exposes createAnalyser, so a reduced context, or a test double, still builds the gain graph and simply exposes no analyzer.
|
||||
*
|
||||
* Scheduling model
|
||||
* ----------------
|
||||
@@ -255,6 +257,13 @@
|
||||
*/
|
||||
const REPORTER_FALLBACK_INTERVAL_MS = 16;
|
||||
|
||||
/**
|
||||
* The transform size of the analyzer that taps the output for the VU meter. It is the smallest size that resolves the low bands the meter starts at.
|
||||
* @readonly
|
||||
* @type {number}
|
||||
*/
|
||||
const OUTPUT_ANALYSER_FFT_SIZE = 2048;
|
||||
|
||||
/**
|
||||
* Coerces a value to a finite number, or null when it is absent or not finite.
|
||||
* @param {*} value - The value to coerce.
|
||||
@@ -268,8 +277,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes a ReplayGain mode into one of the {@link LuminaAudioPlayer.PlayerReplayGainMode} values, defaulting an
|
||||
* absent or unrecognized value to no normalization.
|
||||
* Normalizes a ReplayGain mode into one of the {@link LuminaAudioPlayer.PlayerReplayGainMode} values, defaulting an absent or unrecognized value to no normalization.
|
||||
* @param {string} value - The mode to normalize, as the user settings or the manifest spell it.
|
||||
* @returns {string} One of the {@link LuminaAudioPlayer.PlayerReplayGainMode} values.
|
||||
*/
|
||||
@@ -287,8 +295,7 @@
|
||||
return LuminaAudioPlayer.PlayerReplayGainMode.ALBUM;
|
||||
}
|
||||
// A value the renderer does not know is very likely a mode the server added and this list does not carry yet, so it
|
||||
// is reported, whatever its type, instead of being dropped silently; the sync of the two lists is documented on the
|
||||
// enum.
|
||||
// is reported, whatever its type, instead of being dropped silently; the sync of the two lists is documented on the enum.
|
||||
console.warn(`Audio player: the ReplayGain mode '${String(value)}' is not known to the renderer, so no normalization is applied.`);
|
||||
return LuminaAudioPlayer.PlayerReplayGainMode.OFF;
|
||||
}
|
||||
@@ -299,8 +306,7 @@
|
||||
* ReplayGain carries a track, or album, gain to bring the loudness of the audio to the reference level, and a peak,
|
||||
* the highest sample amplitude of the audio. A gain that would push the peak above the full scale would clip, so the
|
||||
* gain is limited to the largest value that keeps the normalized peak at or below the full scale, exactly as the
|
||||
* ReplayGain specification prescribes. A missing gain means no normalization, and a missing or non positive peak
|
||||
* leaves the gain uncapped.
|
||||
* ReplayGain specification prescribes. A missing gain means no normalization, and a missing or non positive peak leaves the gain uncapped.
|
||||
* @param {number|null} gainDb - The ReplayGain value, in decibels.
|
||||
* @param {number|null} peak - The peak amplitude the gain is applied to.
|
||||
* @returns {number} The linear gain, one when there is nothing to apply.
|
||||
@@ -326,8 +332,7 @@
|
||||
* a unit. The track mode uses the track pair and falls back to the album pair, the album mode does the opposite, and
|
||||
* the off mode selects nothing. The fallback matters because a track whose album was not analyzed can carry only one
|
||||
* of the two pairs, and normalizing with the pair that exists is better than not normalizing at all. A peak is never
|
||||
* taken from one pair while the gain comes from the other, because the anti-clip ceiling would then be computed from a
|
||||
* peak the applied gain does not belong to.
|
||||
* taken from one pair while the gain comes from the other, because the anti-clip ceiling would then be computed from a peak the applied gain does not belong to.
|
||||
* @param {Object|null} manifest - The playback manifest of the track.
|
||||
* @param {string} mode - One of the {@link LuminaAudioPlayer.PlayerReplayGainMode} values.
|
||||
* @returns {{ gainDb: number|null, peak: number|null }} The selected pair, null when nothing is selected.
|
||||
@@ -408,6 +413,10 @@
|
||||
|
||||
this.masterGain = null;
|
||||
this.trackGain = null;
|
||||
// The analyzer that taps the track level for the VU meter of the bar, after the ReplayGain gain and before the
|
||||
// master gain that carries the volume and the mute state. It is null when the audio context of the environment
|
||||
// cannot create one, in which case the meter renders empty instead of failing.
|
||||
this.analyser = null;
|
||||
this.manifest = null;
|
||||
this.duration = 0;
|
||||
// The media duration of the whole shared timeline. It equals the duration of the current track until a gapless
|
||||
@@ -441,12 +450,10 @@
|
||||
// detection, so a schedule that was just reset to a media position does not report the end of the track
|
||||
// before a single buffer has been scheduled at that position.
|
||||
this.hasScheduledSinceReset = false;
|
||||
// True once the decode pipeline has fed the last decoded frame of the track, which is what tells a drained
|
||||
// schedule apart from the end of the track.
|
||||
// True once the decode pipeline has fed the last decoded frame of the track, which is what tells a drained schedule apart from the end of the track.
|
||||
this.streamComplete = false;
|
||||
// True once the current track has reached its end, that is once the schedule drained while the track was known
|
||||
// to be complete. It drives whether a newly scheduled buffer resumes playback; a configure, a seek or a newly
|
||||
// scheduled buffer clears it.
|
||||
// to be complete. It drives whether a newly scheduled buffer resumes playback; a configure, a seek or a newly scheduled buffer clears it.
|
||||
this.reachedEnd = false;
|
||||
// True once the end of the current configured track has been reported through onEnded. It is a latch of its
|
||||
// own, so the callback fires once per configured track even when audio is scheduled after the end; only a
|
||||
@@ -566,8 +573,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels a scheduled gapless ReplayGain change and restores the gain of the current manifest. It is used when the
|
||||
* handoff is abandoned before the next track starts.
|
||||
* Cancels a scheduled gapless ReplayGain change and restores the gain of the current manifest. It is used when the handoff is abandoned before the next track starts.
|
||||
* @returns {LuminaAudioPlayer.TrackRenderer} This renderer, for chaining.
|
||||
*/
|
||||
cancelTrackGainChange() {
|
||||
@@ -600,8 +606,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Releases every resource of the renderer: the schedule, the gain nodes, the event subscriptions and, when the
|
||||
* renderer owns it, the audio context.
|
||||
* Releases every resource of the renderer: the schedule, the gain nodes, the event subscriptions and, when the renderer owns it, the audio context.
|
||||
* @returns {Promise<void>} A promise that completes when the context is closed.
|
||||
*/
|
||||
async destroyAsync() {
|
||||
@@ -627,6 +632,14 @@
|
||||
}
|
||||
this.trackGain = null;
|
||||
}
|
||||
if (this.analyser) {
|
||||
try {
|
||||
this.analyser.disconnect();
|
||||
} catch (error) {
|
||||
console.debug('Audio player: the output analyzer could not be disconnected.', error);
|
||||
}
|
||||
this.analyser = null;
|
||||
}
|
||||
if (this.masterGain) {
|
||||
try {
|
||||
this.masterGain.disconnect();
|
||||
@@ -648,8 +661,7 @@
|
||||
} catch (error) {
|
||||
// The context is still live. Its reference is kept rather than dropped, and the failure is recorded, so a
|
||||
// caller can still reach the context through getContext() and close it itself; the renderer itself is
|
||||
// destroyed and never uses it again. Dropping the only reference would lose a context that the browser
|
||||
// counts until it is closed.
|
||||
// destroyed and never uses it again. Dropping the only reference would lose a context that the browser counts until it is closed.
|
||||
this.raise(error, LuminaAudioPlayer.PlayerErrorCode.ENGINE_ERROR);
|
||||
console.error('Audio player: the audio context could not be closed.', error);
|
||||
return;
|
||||
@@ -1176,6 +1188,16 @@
|
||||
return this.context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the analyzer that taps the output of the track gain, which is what the VU meter of the bar reads. The
|
||||
* analyzer sits after the ReplayGain normalization of the track and before the master gain that carries the
|
||||
* volume and the mute state, so it observes the level of the track itself and never the level of the speaker.
|
||||
* @returns {AnalyserNode|null} The output analyzer, or null when the context has none, when it has not been created yet, or once the renderer was destroyed.
|
||||
*/
|
||||
getOutputAnalyser() {
|
||||
return this.analyser;
|
||||
}
|
||||
|
||||
//+======================================================================================+
|
||||
//| Internal helpers |
|
||||
//+======================================================================================+
|
||||
@@ -1205,18 +1227,44 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the two gain nodes of the output and connects them: the sources feed the per-track gain, which feeds the
|
||||
* master gain, which feeds the destination.
|
||||
* Builds the gain nodes of the output and connects them: the sources feed the per-track gain, which feeds the
|
||||
* output analyzer, which feeds the master gain, which feeds the destination. The analyzer is optional and is
|
||||
* skipped when the context cannot create one, in which case the per-track gain feeds the master gain directly.
|
||||
* Putting the analyzer before the master gain keeps the meter independent of the output volume and of the mute
|
||||
* state, so it measures the level of the track instead of the level of the speaker.
|
||||
*/
|
||||
buildGainGraph() {
|
||||
this.masterGain = this.context.createGain();
|
||||
this.trackGain = this.context.createGain();
|
||||
this.trackGain.connect(this.masterGain);
|
||||
this.analyser = this.createOutputAnalyser();
|
||||
if (this.analyser) {
|
||||
this.trackGain.connect(this.analyser);
|
||||
this.analyser.connect(this.masterGain);
|
||||
} else
|
||||
this.trackGain.connect(this.masterGain);
|
||||
this.masterGain.connect(this.context.destination);
|
||||
this.applyMasterGain(0);
|
||||
this.applyTrackGain(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the analyzer that taps the output for the VU meter. Only its time domain buffer is used: the meter
|
||||
* applies its own window and transform to those samples, so the analyzer is configured with the transform size that buffer must have and nothing else.
|
||||
* @returns {AnalyserNode|null} The analyzer, or null when the context cannot create one.
|
||||
*/
|
||||
createOutputAnalyser() {
|
||||
if (typeof this.context.createAnalyser !== 'function')
|
||||
return null;
|
||||
try {
|
||||
const analyser = this.context.createAnalyser();
|
||||
analyser.fftSize = OUTPUT_ANALYSER_FFT_SIZE;
|
||||
return analyser;
|
||||
} catch (error) {
|
||||
console.debug('Audio player: the output analyzer of the VU meter could not be created.', error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies the output gain, which is the volume, or zero while muted, to the master gain node.
|
||||
* @param {number} rampSeconds - The duration of the ramp to the new value, in seconds. Zero applies it at once.
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -57,6 +57,8 @@
|
||||
* - getState(), getDescriptor(), getQueue(), getCurrentTime(), getDuration(), getVolume(),
|
||||
* isMuted(), isBuffering(), getBufferedTimeRanges(), getPreferences(), getCapabilities(), getLastError(),
|
||||
* getSubTemplates().
|
||||
* - reloadPreferencesAsync(): re-reads the stored settings and playback state of the user, so a change saved on the
|
||||
* settings page applies to the running player, including the VU meter settings.
|
||||
* - getNextDescriptor(): the identity and descriptor of the next queue entry, or null.
|
||||
* - advanceQueueTo(entryId): moves the queue cursor to the entry with that identity without starting playback, so a
|
||||
* linear advance, a wrap, a reordered queue and a gapless handoff share one commit. The advance
|
||||
@@ -646,7 +648,16 @@
|
||||
isGaplessPlaybackEnabled: false,
|
||||
replayGainMode: 'Off',
|
||||
streamingQuality: 'Auto',
|
||||
shouldIgnoreThePrefixForAlphaPicker: false
|
||||
shouldIgnoreThePrefixForAlphaPicker: false,
|
||||
vuMeterOrientation: 'Vertical',
|
||||
vuMeterSegmentCount: 12,
|
||||
vuMeterSegmentGap: 1,
|
||||
vuMeterMediumThreshold: 0.6,
|
||||
vuMeterHighThreshold: 0.8,
|
||||
vuMeterShowPeak: true,
|
||||
vuMeterPeakHoldDurationInMilliseconds: 650,
|
||||
vuMeterReleasePerSecond: 3,
|
||||
vuMeterPeakReleasePerSecond: 0.65
|
||||
};
|
||||
this.capabilityReport = null;
|
||||
this.capabilitiesReady = null;
|
||||
@@ -704,6 +715,12 @@
|
||||
this.container = null;
|
||||
this.main = null;
|
||||
this.dom = {};
|
||||
// The VU meter of the bar, created with the bar elements, and the subscription that follows the stored settings.
|
||||
// Both are null when the VU meter module was not loaded, so a bare player composition, or a test, still works.
|
||||
this.vuMeter = null;
|
||||
this.vuMeterUnsubscribe = null;
|
||||
// The analyzer the meter was bound to, so a load replaces it only when the engine exposes a different one.
|
||||
this.vuMeterAnalyser = null;
|
||||
// The raw theme sub templates of the dynamic content, read once with the bar elements and null when the theme does not provide them.
|
||||
this.subTemplates = { queueItem: null, playlistItem: null };
|
||||
// The playlists of the user, used by the control that adds the current queue to a playlist, and the in flight load of
|
||||
@@ -754,6 +771,7 @@
|
||||
this.isAvailable = true;
|
||||
|
||||
this.collectDomReferences();
|
||||
this.ensureVuMeter();
|
||||
this.bindPlaybackControls();
|
||||
this.bindKeyboardShortcuts();
|
||||
this.bindUnloadFlush();
|
||||
@@ -784,6 +802,7 @@
|
||||
this.dom.albumName = query('[data-audio-player-album-name]');
|
||||
this.dom.coverThumbnail = query('[data-audio-player-cover-thumbnail]');
|
||||
this.dom.coverImage = query('[data-audio-player-cover-image]');
|
||||
this.dom.vuMeter = query('[data-audio-player-vu-meter]');
|
||||
this.dom.currentTime = query('[data-audio-player-current-time]');
|
||||
this.dom.totalTime = query('[data-audio-player-total-time]');
|
||||
this.dom.progress = query('[data-audio-player-progress]');
|
||||
@@ -816,6 +835,92 @@
|
||||
this.ensurePlaylistControls();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the VU meter of the bar, building its root when the active theme does not render the hook.
|
||||
*
|
||||
* The meter is part of the bar rather than of the page, so it is created once with the bar elements and survives
|
||||
* every in place navigation. A theme that renders the 'data-audio-player-vu-meter' hook decides where the meter
|
||||
* sits; a theme that does not gets the built-in meter inserted directly before the current time label, which is the place the bar reserves for it.
|
||||
* The module is optional: a composition that omits it keeps a playable bar with no meter.
|
||||
*/
|
||||
ensureVuMeter() {
|
||||
if (typeof LuminaAudioPlayer.createVuMeter !== 'function')
|
||||
return;
|
||||
if (!this.dom.vuMeter) {
|
||||
const bar = this.container.querySelector('.audio-player-bar');
|
||||
if (!bar)
|
||||
return;
|
||||
const meterElement = document.createElement('div');
|
||||
meterElement.className = 'audio-player-vu-meter';
|
||||
meterElement.dataset.audioPlayerVuMeter = '';
|
||||
meterElement.setAttribute('aria-hidden', 'true');
|
||||
// The current time label is the anchor the bar reserves for the meter: the meter sits between the album art
|
||||
// and the label that shows the current playback time. Only a label that is a direct child of the bar can be
|
||||
// used as an insertion reference, so a theme with a nested label appends the meter to the bar instead.
|
||||
const reference = this.dom.currentTime && this.dom.currentTime.parentNode === bar ? this.dom.currentTime : null;
|
||||
bar.insertBefore(meterElement, reference);
|
||||
this.dom.vuMeter = meterElement;
|
||||
}
|
||||
this.vuMeter = LuminaAudioPlayer.createVuMeter({
|
||||
container: this.dom.vuMeter,
|
||||
settings: this.preferences
|
||||
});
|
||||
if (this.events && typeof this.events.on === 'function')
|
||||
this.vuMeterUnsubscribe = this.events.on(LuminaAudioPlayer.PlayerEvent.PREFERENCES_CHANGED, () => this.applyVuMeterSettings());
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies the current preferences to the VU meter, so a settings change that arrives after the bar was built, or
|
||||
* a change saved on the settings page, takes effect without recreating the player.
|
||||
*/
|
||||
applyVuMeterSettings() {
|
||||
if (!this.vuMeter)
|
||||
return;
|
||||
this.vuMeter.configure(this.preferences);
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds the meter to the output analyzer of the engine once a track was loaded. The renderer creates its audio
|
||||
* context, and with it the analyzer, when it configures a track, so the analyzer only exists from that point on.
|
||||
* An engine that exposes no analyzer, or a renderer whose context cannot create one, leaves the meter empty.
|
||||
* @param {Object} engine - The engine the track was loaded into.
|
||||
*/
|
||||
attachVuMeter(engine) {
|
||||
if (!this.vuMeter || !engine || typeof engine.getOutputAnalyser !== 'function')
|
||||
return;
|
||||
let analyser = null;
|
||||
try {
|
||||
analyser = engine.getOutputAnalyser();
|
||||
} catch (error) {
|
||||
console.debug('Audio player: the engine output analyzer could not be read.', error);
|
||||
return;
|
||||
}
|
||||
if (!analyser || analyser === this.vuMeterAnalyser)
|
||||
return;
|
||||
this.vuMeterAnalyser = analyser;
|
||||
this.vuMeter.setAnalyser(analyser);
|
||||
// The state may already be PLAYING when a load replaced the engine under a running player, so a fresh analyzer
|
||||
// starts reading immediately instead of waiting for the next state change.
|
||||
if (this.state === LuminaAudioPlayer.PlayerState.PLAYING)
|
||||
this.vuMeter.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts or stops the VU meter with the player state. A playing, visible player reads the analyzer, and every
|
||||
* other case lets the meter fall to zero, so a pause, a stop, an end, a failure, or a hidden bar never leaves a
|
||||
* frozen meter on screen and a hidden meter costs no animation frames.
|
||||
* @param {string} state - One of the {@link LuminaAudioPlayer.PlayerState} values.
|
||||
*/
|
||||
updateVuMeterState(state) {
|
||||
if (!this.vuMeter)
|
||||
return;
|
||||
const isVisible = !this.container || !this.container.classList.contains('not-shown');
|
||||
if (state === LuminaAudioPlayer.PlayerState.PLAYING && isVisible)
|
||||
this.vuMeter.start();
|
||||
else
|
||||
this.vuMeter.stop();
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds the transport controls the player owns: the play and pause toggle, the scrub of the progress bar and
|
||||
* of the volume control, and the mute toggle. The expand and close affordances are bound by the global site
|
||||
@@ -1394,6 +1499,9 @@
|
||||
await engine.loadAsync(descriptor, options);
|
||||
if (!isRequestCurrent())
|
||||
return false;
|
||||
// The load configured the renderer of the engine, which creates its audio context and the output analyzer of
|
||||
// the VU meter. Binding it here, once per load, also covers an engine swap under a running player.
|
||||
this.attachVuMeter(engine);
|
||||
if (this.state !== LuminaAudioPlayer.PlayerState.LOADING) {
|
||||
// A stop during the load already paused the engine; a newer request owns the player state and must not be touched by this stale continuation.
|
||||
if (this.state === LuminaAudioPlayer.PlayerState.IDLE)
|
||||
@@ -1950,6 +2058,8 @@
|
||||
this.main.classList.remove('audio-player-not-shown');
|
||||
if (wasHidden)
|
||||
this.events.emit(LuminaAudioPlayer.PlayerEvent.VISIBILITY_CHANGED, { isVisible: true });
|
||||
// A bar that becomes visible while a track plays starts the VU meter, which was stopped while the bar was out of sight.
|
||||
this.updateVuMeterState(this.state);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1968,6 +2078,8 @@
|
||||
if (this.main)
|
||||
this.main.classList.add('audio-player-not-shown');
|
||||
this.events.emit(LuminaAudioPlayer.PlayerEvent.VISIBILITY_CHANGED, { isVisible: false });
|
||||
// A bar that is out of sight stops reading the analyzer, so a hidden meter costs no animation frames.
|
||||
this.updateVuMeterState(this.state);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2669,6 +2781,20 @@
|
||||
return Object.freeze({ ...this.preferences });
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-reads the stored settings and playback state of the user, without recreating the player.
|
||||
*
|
||||
* It is meant for a consumer that knows the stored settings changed while the player is running, such as the
|
||||
* settings page after it saved them, so the change applies immediately instead of on the next full page load. The
|
||||
* read is the same one the player performs at startup, so it never overwrites a volume or a mute state the user changed in the meantime.
|
||||
* @returns {Promise<void>} A promise that completes when the preferences were read.
|
||||
*/
|
||||
async reloadPreferencesAsync() {
|
||||
if (!this.isAvailable)
|
||||
return;
|
||||
await this.loadPreferencesAsync();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the last capability report, or null when detection has not completed yet.
|
||||
* @returns {Object|null} The capability report.
|
||||
@@ -2751,6 +2877,15 @@
|
||||
}
|
||||
this.engine = null;
|
||||
}
|
||||
if (this.vuMeterUnsubscribe) {
|
||||
this.vuMeterUnsubscribe();
|
||||
this.vuMeterUnsubscribe = null;
|
||||
}
|
||||
if (this.vuMeter) {
|
||||
this.vuMeter.destroy();
|
||||
this.vuMeter = null;
|
||||
}
|
||||
this.vuMeterAnalyser = null;
|
||||
this.events.clear();
|
||||
this.setState(LuminaAudioPlayer.PlayerState.IDLE);
|
||||
// The singleton is no longer usable, so it is cleared, and a later createDefaultPlayer builds a fresh one.
|
||||
@@ -2775,6 +2910,7 @@
|
||||
console.warn(`Audio player: the transition '${previousState}' -> '${nextState}' is not part of the state machine.`);
|
||||
this.state = nextState;
|
||||
this.events.emit(LuminaAudioPlayer.PlayerEvent.STATE_CHANGED, { previousState, state: nextState });
|
||||
this.updateVuMeterState(nextState);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3277,7 +3413,16 @@
|
||||
isGaplessPlaybackEnabled: settings.isGaplessPlaybackEnabled === true,
|
||||
replayGainMode: settings.replayGainMode || 'Off',
|
||||
streamingQuality: settings.streamingQuality || 'Auto',
|
||||
shouldIgnoreThePrefixForAlphaPicker: settings.shouldIgnoreThePrefixForAlphaPicker === true
|
||||
shouldIgnoreThePrefixForAlphaPicker: settings.shouldIgnoreThePrefixForAlphaPicker === true,
|
||||
vuMeterOrientation: settings.vuMeterOrientation || 'Vertical',
|
||||
vuMeterSegmentCount: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterSegmentCount) ?? 12,
|
||||
vuMeterSegmentGap: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterSegmentGap) ?? 1,
|
||||
vuMeterMediumThreshold: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterMediumThreshold) ?? 0.6,
|
||||
vuMeterHighThreshold: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterHighThreshold) ?? 0.8,
|
||||
vuMeterShowPeak: settings.vuMeterShowPeak !== false,
|
||||
vuMeterPeakHoldDurationInMilliseconds: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterPeakHoldDurationInMilliseconds) ?? 650,
|
||||
vuMeterReleasePerSecond: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterReleasePerSecond) ?? 3,
|
||||
vuMeterPeakReleasePerSecond: LuminaAudioPlayer.toFiniteNumber(settings.vuMeterPeakReleasePerSecond) ?? 0.65
|
||||
};
|
||||
// The payload is a frozen copy, so a subscriber that mutates it cannot change the preferences the player uses.
|
||||
this.events.emit(LuminaAudioPlayer.PlayerEvent.PREFERENCES_CHANGED, Object.freeze({ ...this.preferences }));
|
||||
|
||||
+49
-17
@@ -33,6 +33,15 @@ public class UserSettingsEntityFixture
|
||||
/// <param name="isGaplessPlaybackEnabled">Optional. Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="replayGainMode">Optional. The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">Optional. The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">Optional. The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">Optional. The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">Optional. The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">Optional. The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">Optional. The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Optional. Whether the VU meter holds the peak level of each channel after it falls.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">Optional. The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">Optional. The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">Optional. The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <param name="volume">Optional. The last volume the player reported for the user.</param>
|
||||
/// <param name="isMuted">Optional. The last mute state the player reported for the user.</param>
|
||||
/// <returns>The created user settings entity.</returns>
|
||||
@@ -51,28 +60,51 @@ public class UserSettingsEntityFixture
|
||||
bool? isGaplessPlaybackEnabled = null,
|
||||
ReplayGainMode? replayGainMode = null,
|
||||
PlaybackStreamingQuality? streamingQuality = null,
|
||||
VuMeterOrientation? vuMeterOrientation = null,
|
||||
int? vuMeterSegmentCount = null,
|
||||
int? vuMeterSegmentGap = null,
|
||||
double? vuMeterMediumThreshold = null,
|
||||
double? vuMeterHighThreshold = null,
|
||||
bool? vuMeterShowPeak = null,
|
||||
int? vuMeterPeakHoldDurationInMilliseconds = null,
|
||||
double? vuMeterReleasePerSecond = null,
|
||||
double? vuMeterPeakReleasePerSecond = null,
|
||||
double? volume = null,
|
||||
bool? isMuted = null)
|
||||
{
|
||||
return new Faker<UserSettingsEntity>()
|
||||
.CustomInstantiator(f => new UserSettingsEntity
|
||||
.CustomInstantiator(f =>
|
||||
{
|
||||
Id = id ?? Guid.NewGuid(),
|
||||
UserId = userId ?? Guid.NewGuid(),
|
||||
IsPaginationEnabled = isPaginationEnabled ?? f.Random.Bool(),
|
||||
ItemsPerPage = itemsPerPage ?? f.Random.Int(1, 100),
|
||||
ShouldIgnoreThePrefixForAlphaPicker = shouldIgnoreThePrefixForAlphaPicker ?? f.Random.Bool(),
|
||||
IsThemeCachingEnabled = isThemeCachingEnabled ?? f.Random.Bool(),
|
||||
ShouldAggregateMetadataWhenMissing = shouldAggregateMetadataWhenMissing ?? f.Random.Bool(),
|
||||
ShouldRenderPdfAsImages = shouldRenderPdfAsImages ?? f.Random.Bool(),
|
||||
ShouldPreserveBookStyles = shouldPreserveBookStyles ?? f.Random.Bool(),
|
||||
ShouldKeepDownloadingWhilePaused = shouldKeepDownloadingWhilePaused ?? f.Random.Bool(),
|
||||
ShouldAutoplay = shouldAutoplay ?? f.Random.Bool(),
|
||||
IsGaplessPlaybackEnabled = isGaplessPlaybackEnabled ?? f.Random.Bool(),
|
||||
ReplayGainMode = replayGainMode ?? f.PickRandom<ReplayGainMode>(),
|
||||
StreamingQuality = streamingQuality ?? f.PickRandom<PlaybackStreamingQuality>(),
|
||||
Volume = volume ?? f.Random.Double(0.0, 1.0),
|
||||
IsMuted = isMuted ?? f.Random.Bool()
|
||||
// The high threshold is generated from the medium one, so a randomized entity always describes a valid meter.
|
||||
double mediumThreshold = vuMeterMediumThreshold ?? f.Random.Double(0, 1);
|
||||
return new UserSettingsEntity
|
||||
{
|
||||
Id = id ?? Guid.NewGuid(),
|
||||
UserId = userId ?? Guid.NewGuid(),
|
||||
IsPaginationEnabled = isPaginationEnabled ?? f.Random.Bool(),
|
||||
ItemsPerPage = itemsPerPage ?? f.Random.Int(1, 100),
|
||||
ShouldIgnoreThePrefixForAlphaPicker = shouldIgnoreThePrefixForAlphaPicker ?? f.Random.Bool(),
|
||||
IsThemeCachingEnabled = isThemeCachingEnabled ?? f.Random.Bool(),
|
||||
ShouldAggregateMetadataWhenMissing = shouldAggregateMetadataWhenMissing ?? f.Random.Bool(),
|
||||
ShouldRenderPdfAsImages = shouldRenderPdfAsImages ?? f.Random.Bool(),
|
||||
ShouldPreserveBookStyles = shouldPreserveBookStyles ?? f.Random.Bool(),
|
||||
ShouldKeepDownloadingWhilePaused = shouldKeepDownloadingWhilePaused ?? f.Random.Bool(),
|
||||
ShouldAutoplay = shouldAutoplay ?? f.Random.Bool(),
|
||||
IsGaplessPlaybackEnabled = isGaplessPlaybackEnabled ?? f.Random.Bool(),
|
||||
ReplayGainMode = replayGainMode ?? f.PickRandom<ReplayGainMode>(),
|
||||
StreamingQuality = streamingQuality ?? f.PickRandom<PlaybackStreamingQuality>(),
|
||||
VuMeterOrientation = vuMeterOrientation ?? f.PickRandom<VuMeterOrientation>(),
|
||||
VuMeterSegmentCount = vuMeterSegmentCount ?? f.Random.Int(1, 128),
|
||||
VuMeterSegmentGap = vuMeterSegmentGap ?? f.Random.Int(0, 32),
|
||||
VuMeterMediumThreshold = mediumThreshold,
|
||||
VuMeterHighThreshold = vuMeterHighThreshold ?? f.Random.Double(mediumThreshold, 1),
|
||||
VuMeterShowPeak = vuMeterShowPeak ?? f.Random.Bool(),
|
||||
VuMeterPeakHoldDurationInMilliseconds = vuMeterPeakHoldDurationInMilliseconds ?? f.Random.Int(0, 10000),
|
||||
VuMeterReleasePerSecond = vuMeterReleasePerSecond ?? f.Random.Double(0, 100),
|
||||
VuMeterPeakReleasePerSecond = vuMeterPeakReleasePerSecond ?? f.Random.Double(0, 100),
|
||||
Volume = volume ?? f.Random.Double(0.0, 1.0),
|
||||
IsMuted = isMuted ?? f.Random.Bool()
|
||||
};
|
||||
})
|
||||
.Generate();
|
||||
}
|
||||
|
||||
+33
-2
@@ -2,6 +2,7 @@
|
||||
using Bogus;
|
||||
using Lumina.Application.Core.UsersManagement.Settings.Commands.UpdateUserSettings;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.Playback;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
@@ -31,6 +32,15 @@ public class UpdateUserSettingsCommandFixture
|
||||
/// <param name="isGaplessPlaybackEnabled">Optional. Whether the player transitions between consecutive tracks without a gap, or not.</param>
|
||||
/// <param name="replayGainMode">Optional. The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">Optional. The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">Optional. The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">Optional. The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">Optional. The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">Optional. The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">Optional. The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Optional. Whether the VU meter holds the peak level of each channel after it falls.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">Optional. The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">Optional. The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">Optional. The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <returns>The created command.</returns>
|
||||
public UpdateUserSettingsCommand Create(
|
||||
bool? isPaginationEnabled = null,
|
||||
@@ -45,10 +55,22 @@ public class UpdateUserSettingsCommandFixture
|
||||
bool? shouldAutoplay = null,
|
||||
bool? isGaplessPlaybackEnabled = null,
|
||||
ReplayGainMode? replayGainMode = null,
|
||||
PlaybackStreamingQuality? streamingQuality = null)
|
||||
PlaybackStreamingQuality? streamingQuality = null,
|
||||
VuMeterOrientation? vuMeterOrientation = null,
|
||||
int? vuMeterSegmentCount = null,
|
||||
int? vuMeterSegmentGap = null,
|
||||
double? vuMeterMediumThreshold = null,
|
||||
double? vuMeterHighThreshold = null,
|
||||
bool? vuMeterShowPeak = null,
|
||||
int? vuMeterPeakHoldDurationInMilliseconds = null,
|
||||
double? vuMeterReleasePerSecond = null,
|
||||
double? vuMeterPeakReleasePerSecond = null)
|
||||
{
|
||||
// The high threshold is generated from the medium one, so a randomized command always describes a valid meter.
|
||||
double mediumThreshold = vuMeterMediumThreshold ?? Random.Shared.NextDouble();
|
||||
double highThreshold = vuMeterHighThreshold ?? (mediumThreshold + Random.Shared.NextDouble() * (1 - mediumThreshold));
|
||||
return new Faker<UpdateUserSettingsCommand>()
|
||||
.CustomInstantiator(f => new UpdateUserSettingsCommand(default, default, default, default, default, default, default, default, default, default, default, default, default))
|
||||
.CustomInstantiator(f => new UpdateUserSettingsCommand(default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default, default))
|
||||
.RuleFor(x => x.IsPaginationEnabled, f => isPaginationEnabled ?? f.Random.Bool())
|
||||
.RuleFor(x => x.ItemsPerPage, f => itemsPerPage ?? f.Random.Int(1, 100))
|
||||
.RuleFor(x => x.ShouldIgnoreThePrefixForAlphaPicker, f => shouldIgnoreThePrefixForAlphaPicker ?? f.Random.Bool())
|
||||
@@ -62,6 +84,15 @@ public class UpdateUserSettingsCommandFixture
|
||||
.RuleFor(x => x.IsGaplessPlaybackEnabled, f => isGaplessPlaybackEnabled ?? f.Random.Bool())
|
||||
.RuleFor(x => x.ReplayGainMode, f => replayGainMode ?? f.PickRandom<ReplayGainMode>())
|
||||
.RuleFor(x => x.StreamingQuality, f => streamingQuality ?? f.PickRandom<PlaybackStreamingQuality>())
|
||||
.RuleFor(x => x.VuMeterOrientation, f => vuMeterOrientation ?? f.PickRandom<VuMeterOrientation>())
|
||||
.RuleFor(x => x.VuMeterSegmentCount, f => vuMeterSegmentCount ?? f.Random.Int(1, 128))
|
||||
.RuleFor(x => x.VuMeterSegmentGap, f => vuMeterSegmentGap ?? f.Random.Int(0, 32))
|
||||
.RuleFor(x => x.VuMeterMediumThreshold, f => mediumThreshold)
|
||||
.RuleFor(x => x.VuMeterHighThreshold, f => highThreshold)
|
||||
.RuleFor(x => x.VuMeterShowPeak, f => vuMeterShowPeak ?? f.Random.Bool())
|
||||
.RuleFor(x => x.VuMeterPeakHoldDurationInMilliseconds, f => vuMeterPeakHoldDurationInMilliseconds ?? f.Random.Int(0, 10000))
|
||||
.RuleFor(x => x.VuMeterReleasePerSecond, f => vuMeterReleasePerSecond ?? f.Random.Double(0, 100))
|
||||
.RuleFor(x => x.VuMeterPeakReleasePerSecond, f => vuMeterPeakReleasePerSecond ?? f.Random.Double(0, 100))
|
||||
.Generate();
|
||||
}
|
||||
|
||||
|
||||
+32
-2
@@ -33,6 +33,15 @@ public class UpdateUserSettingsRequestFixture
|
||||
/// <param name="isGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap.</param>
|
||||
/// <param name="replayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <returns>The created <see cref="UpdateUserSettingsRequest"/>.</returns>
|
||||
public UpdateUserSettingsRequest Create(
|
||||
bool? isPaginationEnabled = null,
|
||||
@@ -47,8 +56,20 @@ public class UpdateUserSettingsRequestFixture
|
||||
bool? shouldAutoplay = null,
|
||||
bool? isGaplessPlaybackEnabled = null,
|
||||
ReplayGainMode? replayGainMode = null,
|
||||
PlaybackStreamingQuality? streamingQuality = null)
|
||||
PlaybackStreamingQuality? streamingQuality = null,
|
||||
VuMeterOrientation? vuMeterOrientation = null,
|
||||
int? vuMeterSegmentCount = null,
|
||||
int? vuMeterSegmentGap = null,
|
||||
double? vuMeterMediumThreshold = null,
|
||||
double? vuMeterHighThreshold = null,
|
||||
bool? vuMeterShowPeak = null,
|
||||
int? vuMeterPeakHoldDurationInMilliseconds = null,
|
||||
double? vuMeterReleasePerSecond = null,
|
||||
double? vuMeterPeakReleasePerSecond = null)
|
||||
{
|
||||
// The high threshold is generated from the medium one, so a randomized request always describes a valid meter.
|
||||
double mediumThreshold = vuMeterMediumThreshold ?? _faker.Random.Double(0, 1);
|
||||
double highThreshold = vuMeterHighThreshold ?? _faker.Random.Double(mediumThreshold, 1);
|
||||
return new UpdateUserSettingsRequest(
|
||||
isPaginationEnabled ?? _faker.Random.Bool(),
|
||||
itemsPerPage ?? _faker.Random.Int(1, 100),
|
||||
@@ -62,7 +83,16 @@ public class UpdateUserSettingsRequestFixture
|
||||
shouldAutoplay ?? _faker.Random.Bool(),
|
||||
isGaplessPlaybackEnabled ?? _faker.Random.Bool(),
|
||||
replayGainMode ?? _faker.PickRandom<ReplayGainMode>(),
|
||||
streamingQuality ?? _faker.PickRandom<PlaybackStreamingQuality>());
|
||||
streamingQuality ?? _faker.PickRandom<PlaybackStreamingQuality>(),
|
||||
vuMeterOrientation ?? _faker.PickRandom<VuMeterOrientation>(),
|
||||
vuMeterSegmentCount ?? _faker.Random.Int(1, 128),
|
||||
vuMeterSegmentGap ?? _faker.Random.Int(0, 32),
|
||||
mediumThreshold,
|
||||
highThreshold,
|
||||
vuMeterShowPeak ?? _faker.Random.Bool(),
|
||||
vuMeterPeakHoldDurationInMilliseconds ?? _faker.Random.Int(0, 10000),
|
||||
vuMeterReleasePerSecond ?? _faker.Random.Double(0, 100),
|
||||
vuMeterPeakReleasePerSecond ?? _faker.Random.Double(0, 100));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+32
-2
@@ -35,6 +35,15 @@ public class UserSettingsResponseFixture
|
||||
/// <param name="isGaplessPlaybackEnabled">Optional. Whether the player transitions between consecutive tracks without a gap.</param>
|
||||
/// <param name="replayGainMode">Optional. The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">Optional. The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">Optional. The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">Optional. The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">Optional. The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">Optional. The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">Optional. The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Optional. Whether the VU meter holds the peak level of each channel after it falls.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">Optional. The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">Optional. The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">Optional. The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <returns>The created <see cref="UserSettingsResponse"/>.</returns>
|
||||
public UserSettingsResponse Create(
|
||||
Guid? userId = null,
|
||||
@@ -50,8 +59,20 @@ public class UserSettingsResponseFixture
|
||||
bool? shouldAutoplay = null,
|
||||
bool? isGaplessPlaybackEnabled = null,
|
||||
ReplayGainMode? replayGainMode = null,
|
||||
PlaybackStreamingQuality? streamingQuality = null)
|
||||
PlaybackStreamingQuality? streamingQuality = null,
|
||||
VuMeterOrientation? vuMeterOrientation = null,
|
||||
int? vuMeterSegmentCount = null,
|
||||
int? vuMeterSegmentGap = null,
|
||||
double? vuMeterMediumThreshold = null,
|
||||
double? vuMeterHighThreshold = null,
|
||||
bool? vuMeterShowPeak = null,
|
||||
int? vuMeterPeakHoldDurationInMilliseconds = null,
|
||||
double? vuMeterReleasePerSecond = null,
|
||||
double? vuMeterPeakReleasePerSecond = null)
|
||||
{
|
||||
// The high threshold is generated from the medium one, so a randomized response always describes a valid meter.
|
||||
double mediumThreshold = vuMeterMediumThreshold ?? _faker.Random.Double(0, 1);
|
||||
double highThreshold = vuMeterHighThreshold ?? _faker.Random.Double(mediumThreshold, 1);
|
||||
return new UserSettingsResponse(
|
||||
userId ?? Guid.NewGuid(),
|
||||
isPaginationEnabled ?? _faker.Random.Bool(),
|
||||
@@ -66,7 +87,16 @@ public class UserSettingsResponseFixture
|
||||
shouldAutoplay ?? _faker.Random.Bool(),
|
||||
isGaplessPlaybackEnabled ?? _faker.Random.Bool(),
|
||||
replayGainMode ?? _faker.PickRandom<ReplayGainMode>(),
|
||||
streamingQuality ?? _faker.PickRandom<PlaybackStreamingQuality>());
|
||||
streamingQuality ?? _faker.PickRandom<PlaybackStreamingQuality>(),
|
||||
vuMeterOrientation ?? _faker.PickRandom<VuMeterOrientation>(),
|
||||
vuMeterSegmentCount ?? _faker.Random.Int(1, 128),
|
||||
vuMeterSegmentGap ?? _faker.Random.Int(0, 32),
|
||||
mediumThreshold,
|
||||
highThreshold,
|
||||
vuMeterShowPeak ?? _faker.Random.Bool(),
|
||||
vuMeterPeakHoldDurationInMilliseconds ?? _faker.Random.Int(0, 10000),
|
||||
vuMeterReleasePerSecond ?? _faker.Random.Double(0, 100),
|
||||
vuMeterPeakReleasePerSecond ?? _faker.Random.Double(0, 100));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+27
@@ -34,6 +34,15 @@ public class UserSettingsFixture
|
||||
/// <param name="isGaplessPlaybackEnabled">Whether the player transitions between consecutive tracks without a gap.</param>
|
||||
/// <param name="replayGainMode">The way ReplayGain normalization is applied to the tracks the user plays.</param>
|
||||
/// <param name="streamingQuality">The quality cap applied to the audio the server normalizes for the user.</param>
|
||||
/// <param name="vuMeterOrientation">The direction in which each channel of the VU meter of the audio player grows.</param>
|
||||
/// <param name="vuMeterSegmentCount">The number of segments each channel of the VU meter is divided into.</param>
|
||||
/// <param name="vuMeterSegmentGap">The gap, in pixels, between the segments and the channels of the VU meter.</param>
|
||||
/// <param name="vuMeterMediumThreshold">The level above which a segment of the VU meter is drawn with its medium state.</param>
|
||||
/// <param name="vuMeterHighThreshold">The level above which a segment of the VU meter is drawn with its high state.</param>
|
||||
/// <param name="vuMeterShowPeak">Whether the VU meter holds the peak level of each channel after it falls.</param>
|
||||
/// <param name="vuMeterPeakHoldDurationInMilliseconds">The time a peak of the VU meter is held before it starts falling.</param>
|
||||
/// <param name="vuMeterReleasePerSecond">The number of level units the display of the VU meter falls per second when the input level drops.</param>
|
||||
/// <param name="vuMeterPeakReleasePerSecond">The number of level units the peak of the VU meter falls per second after its hold time elapsed.</param>
|
||||
/// <param name="volume">The last volume the player reported for the user.</param>
|
||||
/// <param name="isMuted">The last mute state the player reported for the user.</param>
|
||||
/// <returns>The created <see cref="UserSettings"/>.</returns>
|
||||
@@ -52,6 +61,15 @@ public class UserSettingsFixture
|
||||
bool isGaplessPlaybackEnabled = true,
|
||||
ReplayGainMode replayGainMode = ReplayGainMode.Off,
|
||||
PlaybackStreamingQuality streamingQuality = PlaybackStreamingQuality.Auto,
|
||||
VuMeterOrientation vuMeterOrientation = VuMeterOrientation.Vertical,
|
||||
int vuMeterSegmentCount = 12,
|
||||
int vuMeterSegmentGap = 1,
|
||||
double vuMeterMediumThreshold = 0.6,
|
||||
double vuMeterHighThreshold = 0.8,
|
||||
bool vuMeterShowPeak = true,
|
||||
int vuMeterPeakHoldDurationInMilliseconds = 650,
|
||||
double vuMeterReleasePerSecond = 3.0,
|
||||
double vuMeterPeakReleasePerSecond = 0.65,
|
||||
double volume = 1.0,
|
||||
bool isMuted = false)
|
||||
{
|
||||
@@ -70,6 +88,15 @@ public class UserSettingsFixture
|
||||
isGaplessPlaybackEnabled,
|
||||
replayGainMode,
|
||||
streamingQuality,
|
||||
vuMeterOrientation,
|
||||
vuMeterSegmentCount,
|
||||
vuMeterSegmentGap,
|
||||
vuMeterMediumThreshold,
|
||||
vuMeterHighThreshold,
|
||||
vuMeterShowPeak,
|
||||
vuMeterPeakHoldDurationInMilliseconds,
|
||||
vuMeterReleasePerSecond,
|
||||
vuMeterPeakReleasePerSecond,
|
||||
volume,
|
||||
isMuted);
|
||||
return settings.Value;
|
||||
|
||||
+39
-2
@@ -5,6 +5,7 @@ using Lumina.Application.Fixtures.Common.DataAccess.Entities.UsersManagement;
|
||||
using Lumina.Contracts.Responses.UsersManagement.Settings;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Domain.Core.BoundedContexts.UserManagementBoundedContext.UserSettingsAggregate;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.Playback;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
@@ -22,7 +23,16 @@ public class UserSettingsEntityMappingTests
|
||||
public void ToDomainEntity_WhenMappingValidRepositoryEntity_ShouldMapCorrectly()
|
||||
{
|
||||
// Arrange
|
||||
UserSettingsEntity entity = _userSettingsEntityFixture.Create();
|
||||
UserSettingsEntity entity = _userSettingsEntityFixture.Create(
|
||||
vuMeterOrientation: VuMeterOrientation.Horizontal,
|
||||
vuMeterSegmentCount: 24,
|
||||
vuMeterSegmentGap: 2,
|
||||
vuMeterMediumThreshold: 0.4,
|
||||
vuMeterHighThreshold: 0.9,
|
||||
vuMeterShowPeak: false,
|
||||
vuMeterPeakHoldDurationInMilliseconds: 900,
|
||||
vuMeterReleasePerSecond: 2.5,
|
||||
vuMeterPeakReleasePerSecond: 0.9);
|
||||
|
||||
// Act
|
||||
Result<UserSettings> result = entity.ToDomainEntity();
|
||||
@@ -37,13 +47,31 @@ public class UserSettingsEntityMappingTests
|
||||
Assert.Equal(entity.IsThemeCachingEnabled, result.Value.IsThemeCachingEnabled);
|
||||
Assert.Equal(entity.ShouldRenderPdfAsImages, result.Value.ShouldRenderPdfAsImages);
|
||||
Assert.Equal(entity.ShouldPreserveBookStyles, result.Value.ShouldPreserveBookStyles);
|
||||
Assert.Equal(entity.VuMeterOrientation, result.Value.VuMeterOrientation);
|
||||
Assert.Equal(entity.VuMeterSegmentCount, result.Value.VuMeterSegmentCount);
|
||||
Assert.Equal(entity.VuMeterSegmentGap, result.Value.VuMeterSegmentGap);
|
||||
Assert.Equal(entity.VuMeterMediumThreshold, result.Value.VuMeterMediumThreshold);
|
||||
Assert.Equal(entity.VuMeterHighThreshold, result.Value.VuMeterHighThreshold);
|
||||
Assert.Equal(entity.VuMeterShowPeak, result.Value.VuMeterShowPeak);
|
||||
Assert.Equal(entity.VuMeterPeakHoldDurationInMilliseconds, result.Value.VuMeterPeakHoldDurationInMilliseconds);
|
||||
Assert.Equal(entity.VuMeterReleasePerSecond, result.Value.VuMeterReleasePerSecond);
|
||||
Assert.Equal(entity.VuMeterPeakReleasePerSecond, result.Value.VuMeterPeakReleasePerSecond);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToResponse_WhenMappingValidRepositoryEntity_ShouldMapCorrectly()
|
||||
{
|
||||
// Arrange
|
||||
UserSettingsEntity entity = _userSettingsEntityFixture.Create();
|
||||
UserSettingsEntity entity = _userSettingsEntityFixture.Create(
|
||||
vuMeterOrientation: VuMeterOrientation.Horizontal,
|
||||
vuMeterSegmentCount: 24,
|
||||
vuMeterSegmentGap: 2,
|
||||
vuMeterMediumThreshold: 0.4,
|
||||
vuMeterHighThreshold: 0.9,
|
||||
vuMeterShowPeak: false,
|
||||
vuMeterPeakHoldDurationInMilliseconds: 900,
|
||||
vuMeterReleasePerSecond: 2.5,
|
||||
vuMeterPeakReleasePerSecond: 0.9);
|
||||
|
||||
// Act
|
||||
UserSettingsResponse result = entity.ToResponse();
|
||||
@@ -57,5 +85,14 @@ public class UserSettingsEntityMappingTests
|
||||
Assert.Equal(entity.IsThemeCachingEnabled, result.IsThemeCachingEnabled);
|
||||
Assert.Equal(entity.ShouldRenderPdfAsImages, result.ShouldRenderPdfAsImages);
|
||||
Assert.Equal(entity.ShouldPreserveBookStyles, result.ShouldPreserveBookStyles);
|
||||
Assert.Equal(entity.VuMeterOrientation, result.VuMeterOrientation);
|
||||
Assert.Equal(entity.VuMeterSegmentCount, result.VuMeterSegmentCount);
|
||||
Assert.Equal(entity.VuMeterSegmentGap, result.VuMeterSegmentGap);
|
||||
Assert.Equal(entity.VuMeterMediumThreshold, result.VuMeterMediumThreshold);
|
||||
Assert.Equal(entity.VuMeterHighThreshold, result.VuMeterHighThreshold);
|
||||
Assert.Equal(entity.VuMeterShowPeak, result.VuMeterShowPeak);
|
||||
Assert.Equal(entity.VuMeterPeakHoldDurationInMilliseconds, result.VuMeterPeakHoldDurationInMilliseconds);
|
||||
Assert.Equal(entity.VuMeterReleasePerSecond, result.VuMeterReleasePerSecond);
|
||||
Assert.Equal(entity.VuMeterPeakReleasePerSecond, result.VuMeterPeakReleasePerSecond);
|
||||
}
|
||||
}
|
||||
+41
-2
@@ -4,6 +4,7 @@ using Lumina.Application.Common.Mapping.UsersManagement.Users;
|
||||
using Lumina.Contracts.Responses.UsersManagement.Settings;
|
||||
using Lumina.Domain.Core.BoundedContexts.UserManagementBoundedContext.UserSettingsAggregate;
|
||||
using Lumina.Domain.Fixtures.Core.BoundedContexts.UserManagementBoundedContext.UserSettingsAggregate;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.Playback;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
@@ -23,7 +24,17 @@ public class UserSettingsMappingTests
|
||||
{
|
||||
// Arrange
|
||||
Guid userId = Guid.NewGuid();
|
||||
UserSettings domainEntity = _userSettingsFixture.Create(userId: userId);
|
||||
UserSettings domainEntity = _userSettingsFixture.Create(
|
||||
userId: userId,
|
||||
vuMeterOrientation: VuMeterOrientation.Horizontal,
|
||||
vuMeterSegmentCount: 24,
|
||||
vuMeterSegmentGap: 2,
|
||||
vuMeterMediumThreshold: 0.4,
|
||||
vuMeterHighThreshold: 0.9,
|
||||
vuMeterShowPeak: false,
|
||||
vuMeterPeakHoldDurationInMilliseconds: 900,
|
||||
vuMeterReleasePerSecond: 2.5,
|
||||
vuMeterPeakReleasePerSecond: 0.9);
|
||||
|
||||
// Act
|
||||
UserSettingsEntity result = domainEntity.ToRepositoryEntity();
|
||||
@@ -37,6 +48,15 @@ public class UserSettingsMappingTests
|
||||
Assert.Equal(domainEntity.ShouldIgnoreThePrefixForAlphaPicker, result.ShouldIgnoreThePrefixForAlphaPicker);
|
||||
Assert.Equal(domainEntity.ShouldRenderPdfAsImages, result.ShouldRenderPdfAsImages);
|
||||
Assert.Equal(domainEntity.ShouldPreserveBookStyles, result.ShouldPreserveBookStyles);
|
||||
Assert.Equal(domainEntity.VuMeterOrientation, result.VuMeterOrientation);
|
||||
Assert.Equal(domainEntity.VuMeterSegmentCount, result.VuMeterSegmentCount);
|
||||
Assert.Equal(domainEntity.VuMeterSegmentGap, result.VuMeterSegmentGap);
|
||||
Assert.Equal(domainEntity.VuMeterMediumThreshold, result.VuMeterMediumThreshold);
|
||||
Assert.Equal(domainEntity.VuMeterHighThreshold, result.VuMeterHighThreshold);
|
||||
Assert.Equal(domainEntity.VuMeterShowPeak, result.VuMeterShowPeak);
|
||||
Assert.Equal(domainEntity.VuMeterPeakHoldDurationInMilliseconds, result.VuMeterPeakHoldDurationInMilliseconds);
|
||||
Assert.Equal(domainEntity.VuMeterReleasePerSecond, result.VuMeterReleasePerSecond);
|
||||
Assert.Equal(domainEntity.VuMeterPeakReleasePerSecond, result.VuMeterPeakReleasePerSecond);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -44,7 +64,17 @@ public class UserSettingsMappingTests
|
||||
{
|
||||
// Arrange
|
||||
Guid userId = Guid.NewGuid();
|
||||
UserSettings domainEntity = _userSettingsFixture.Create(userId: userId);
|
||||
UserSettings domainEntity = _userSettingsFixture.Create(
|
||||
userId: userId,
|
||||
vuMeterOrientation: VuMeterOrientation.Horizontal,
|
||||
vuMeterSegmentCount: 24,
|
||||
vuMeterSegmentGap: 2,
|
||||
vuMeterMediumThreshold: 0.4,
|
||||
vuMeterHighThreshold: 0.9,
|
||||
vuMeterShowPeak: false,
|
||||
vuMeterPeakHoldDurationInMilliseconds: 900,
|
||||
vuMeterReleasePerSecond: 2.5,
|
||||
vuMeterPeakReleasePerSecond: 0.9);
|
||||
|
||||
// Act
|
||||
UserSettingsResponse result = domainEntity.ToResponse();
|
||||
@@ -57,5 +87,14 @@ public class UserSettingsMappingTests
|
||||
Assert.Equal(domainEntity.ShouldIgnoreThePrefixForAlphaPicker, result.ShouldIgnoreThePrefixForAlphaPicker);
|
||||
Assert.Equal(domainEntity.ShouldRenderPdfAsImages, result.ShouldRenderPdfAsImages);
|
||||
Assert.Equal(domainEntity.ShouldPreserveBookStyles, result.ShouldPreserveBookStyles);
|
||||
Assert.Equal(domainEntity.VuMeterOrientation, result.VuMeterOrientation);
|
||||
Assert.Equal(domainEntity.VuMeterSegmentCount, result.VuMeterSegmentCount);
|
||||
Assert.Equal(domainEntity.VuMeterSegmentGap, result.VuMeterSegmentGap);
|
||||
Assert.Equal(domainEntity.VuMeterMediumThreshold, result.VuMeterMediumThreshold);
|
||||
Assert.Equal(domainEntity.VuMeterHighThreshold, result.VuMeterHighThreshold);
|
||||
Assert.Equal(domainEntity.VuMeterShowPeak, result.VuMeterShowPeak);
|
||||
Assert.Equal(domainEntity.VuMeterPeakHoldDurationInMilliseconds, result.VuMeterPeakHoldDurationInMilliseconds);
|
||||
Assert.Equal(domainEntity.VuMeterReleasePerSecond, result.VuMeterReleasePerSecond);
|
||||
Assert.Equal(domainEntity.VuMeterPeakReleasePerSecond, result.VuMeterPeakReleasePerSecond);
|
||||
}
|
||||
}
|
||||
+18
@@ -53,12 +53,30 @@ public class UserSettingsConfigurationTests
|
||||
IProperty isPaginationEnabledProperty = entityType.GetProperty(nameof(UserSettingsEntity.IsPaginationEnabled));
|
||||
IProperty itemsPerPageProperty = entityType.GetProperty(nameof(UserSettingsEntity.ItemsPerPage));
|
||||
IProperty ignoreThePrefixProperty = entityType.GetProperty(nameof(UserSettingsEntity.ShouldIgnoreThePrefixForAlphaPicker));
|
||||
IProperty vuMeterOrientationProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterOrientation));
|
||||
IProperty vuMeterSegmentCountProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterSegmentCount));
|
||||
IProperty vuMeterSegmentGapProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterSegmentGap));
|
||||
IProperty vuMeterMediumThresholdProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterMediumThreshold));
|
||||
IProperty vuMeterHighThresholdProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterHighThreshold));
|
||||
IProperty vuMeterShowPeakProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterShowPeak));
|
||||
IProperty vuMeterPeakHoldDurationProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterPeakHoldDurationInMilliseconds));
|
||||
IProperty vuMeterReleasePerSecondProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterReleasePerSecond));
|
||||
IProperty vuMeterPeakReleasePerSecondProperty = entityType.GetProperty(nameof(UserSettingsEntity.VuMeterPeakReleasePerSecond));
|
||||
|
||||
// Assert
|
||||
Assert.False(userIdProperty.IsNullable);
|
||||
Assert.False(isPaginationEnabledProperty.IsNullable);
|
||||
Assert.False(itemsPerPageProperty.IsNullable);
|
||||
Assert.False(ignoreThePrefixProperty.IsNullable);
|
||||
Assert.False(vuMeterOrientationProperty.IsNullable);
|
||||
Assert.False(vuMeterSegmentCountProperty.IsNullable);
|
||||
Assert.False(vuMeterSegmentGapProperty.IsNullable);
|
||||
Assert.False(vuMeterMediumThresholdProperty.IsNullable);
|
||||
Assert.False(vuMeterHighThresholdProperty.IsNullable);
|
||||
Assert.False(vuMeterShowPeakProperty.IsNullable);
|
||||
Assert.False(vuMeterPeakHoldDurationProperty.IsNullable);
|
||||
Assert.False(vuMeterReleasePerSecondProperty.IsNullable);
|
||||
Assert.False(vuMeterPeakReleasePerSecondProperty.IsNullable);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -79,7 +79,7 @@ public class ErrorsTests
|
||||
{
|
||||
// Assert
|
||||
// The count assertion fails when an error is added or removed, reminding to update the assertions below.
|
||||
Assert.Equal(13, typeof(DomainErrors.UserSettings).GetProperties().Length);
|
||||
Assert.Equal(31, typeof(DomainErrors.UserSettings).GetProperties().Length);
|
||||
AssertError(DomainErrors.UserSettings.UserSettingsAlreadyExists, ErrorType.Conflict);
|
||||
AssertError(DomainErrors.UserSettings.UserSettingsNotFound, ErrorType.NotFound);
|
||||
AssertError(DomainErrors.UserSettings.ItemsPerPageMustBeGreaterThanZero, ErrorType.Validation);
|
||||
@@ -93,6 +93,24 @@ public class ErrorsTests
|
||||
AssertError(DomainErrors.UserSettings.StreamingQualityCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.InvalidReplayGainMode, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.InvalidStreamingQuality, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterOrientationCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.InvalidVuMeterOrientation, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterSegmentCountCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterSegmentGapCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterMediumThresholdCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterMediumThresholdMustBeBetweenZeroAndOne, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterHighThresholdCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterHighThresholdMustBeBetweenZeroAndOne, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterShowPeakCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterPeakHoldDurationCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterReleasePerSecondCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterPeakReleasePerSecondCannotBeNull, ErrorType.Validation);
|
||||
AssertError(DomainErrors.UserSettings.VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred, ErrorType.Validation);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+3
-3
@@ -80,7 +80,7 @@ public class UserSettingsTests
|
||||
UserId userId = _userIdFixture.Create();
|
||||
|
||||
// Act
|
||||
Result<UserSettings> result = UserSettings.Create(userId, isPaginationEnabled: false, itemsPerPage: 24, shouldIgnoreThePrefixForAlphaPicker: true, isThemeCachingEnabled: true, shouldAggregateMetadataWhenMissing: true, shouldAggregateArtworkWhenMissing: true, shouldRenderPdfAsImages: true, shouldPreserveBookStyles: true, shouldKeepDownloadingWhilePaused: true, shouldAutoplay: true, isGaplessPlaybackEnabled: true, replayGainMode: ReplayGainMode.Off, streamingQuality: PlaybackStreamingQuality.Auto, volume: 1.0, isMuted: false);
|
||||
Result<UserSettings> result = UserSettings.Create(userId, isPaginationEnabled: false, itemsPerPage: 24, shouldIgnoreThePrefixForAlphaPicker: true, isThemeCachingEnabled: true, shouldAggregateMetadataWhenMissing: true, shouldAggregateArtworkWhenMissing: true, shouldRenderPdfAsImages: true, shouldPreserveBookStyles: true, shouldKeepDownloadingWhilePaused: true, shouldAutoplay: true, isGaplessPlaybackEnabled: true, replayGainMode: ReplayGainMode.Off, streamingQuality: PlaybackStreamingQuality.Auto, vuMeterOrientation: VuMeterOrientation.Vertical, vuMeterSegmentCount: 12, vuMeterSegmentGap: 1, vuMeterMediumThreshold: 0.6, vuMeterHighThreshold: 0.8, vuMeterShowPeak: true, vuMeterPeakHoldDurationInMilliseconds: 650, vuMeterReleasePerSecond: 1.5, vuMeterPeakReleasePerSecond: 0.65, volume: 1.0, isMuted: false);
|
||||
|
||||
// Assert
|
||||
Assert.False(result.IsFailure);
|
||||
@@ -116,7 +116,7 @@ public class UserSettingsTests
|
||||
UserSettingsId id = _userSettingsIdFixture.Create();
|
||||
|
||||
// Act
|
||||
Result<UserSettings> result = UserSettings.Create(id, userId, isPaginationEnabled: true, itemsPerPage: 24, shouldIgnoreThePrefixForAlphaPicker: false, isThemeCachingEnabled: true, shouldAggregateMetadataWhenMissing: false, shouldAggregateArtworkWhenMissing: false, shouldRenderPdfAsImages: false, shouldPreserveBookStyles: true, shouldKeepDownloadingWhilePaused: true, shouldAutoplay: true, isGaplessPlaybackEnabled: true, replayGainMode: ReplayGainMode.Off, streamingQuality: PlaybackStreamingQuality.Auto, volume: 1.0, isMuted: false);
|
||||
Result<UserSettings> result = UserSettings.Create(id, userId, isPaginationEnabled: true, itemsPerPage: 24, shouldIgnoreThePrefixForAlphaPicker: false, isThemeCachingEnabled: true, shouldAggregateMetadataWhenMissing: false, shouldAggregateArtworkWhenMissing: false, shouldRenderPdfAsImages: false, shouldPreserveBookStyles: true, shouldKeepDownloadingWhilePaused: true, shouldAutoplay: true, isGaplessPlaybackEnabled: true, replayGainMode: ReplayGainMode.Off, streamingQuality: PlaybackStreamingQuality.Auto, vuMeterOrientation: VuMeterOrientation.Vertical, vuMeterSegmentCount: 12, vuMeterSegmentGap: 1, vuMeterMediumThreshold: 0.6, vuMeterHighThreshold: 0.8, vuMeterShowPeak: true, vuMeterPeakHoldDurationInMilliseconds: 650, vuMeterReleasePerSecond: 1.5, vuMeterPeakReleasePerSecond: 0.65, volume: 1.0, isMuted: false);
|
||||
|
||||
// Assert
|
||||
Assert.False(result.IsFailure);
|
||||
@@ -132,7 +132,7 @@ public class UserSettingsTests
|
||||
UserSettings userSettings = _userSettingsFixture.Create();
|
||||
|
||||
// Act
|
||||
Result<Updated> result = userSettings.UpdateSettings(isPaginationEnabled: false, itemsPerPage: 12, shouldIgnoreThePrefixForAlphaPicker: true, isThemeCachingEnabled: false, shouldAggregateMetadataWhenMissing: true, shouldAggregateArtworkWhenMissing: true, shouldRenderPdfAsImages: true, shouldPreserveBookStyles: true, shouldKeepDownloadingWhilePaused: true, shouldAutoplay: true, isGaplessPlaybackEnabled: true, replayGainMode: ReplayGainMode.Off, streamingQuality: PlaybackStreamingQuality.Auto);
|
||||
Result<Updated> result = userSettings.UpdateSettings(isPaginationEnabled: false, itemsPerPage: 12, shouldIgnoreThePrefixForAlphaPicker: true, isThemeCachingEnabled: false, shouldAggregateMetadataWhenMissing: true, shouldAggregateArtworkWhenMissing: true, shouldRenderPdfAsImages: true, shouldPreserveBookStyles: true, shouldKeepDownloadingWhilePaused: true, shouldAutoplay: true, isGaplessPlaybackEnabled: true, replayGainMode: ReplayGainMode.Off, streamingQuality: PlaybackStreamingQuality.Auto, vuMeterOrientation: VuMeterOrientation.Vertical, vuMeterSegmentCount: 12, vuMeterSegmentGap: 1, vuMeterMediumThreshold: 0.6, vuMeterHighThreshold: 0.8, vuMeterShowPeak: true, vuMeterPeakHoldDurationInMilliseconds: 650, vuMeterReleasePerSecond: 1.5, vuMeterPeakReleasePerSecond: 0.65);
|
||||
|
||||
// Assert
|
||||
Assert.False(result.IsFailure);
|
||||
|
||||
Reference in new issue
Block a user