mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 07:11:10 +00:00
Adds normalized audio playback pipeline
This commit is contained in:
1 parent
6991640710
commit
4e13b23f16
35 files changed
+3817
-41
No files matched your search
@@ -8,28 +8,29 @@ namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
|
||||
/// Enumeration for the quality cap applied to the audio the server normalizes (remuxes or transcodes) for a user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The caps apply only to audio the server has to change; a track that is played directly is always delivered as it was stored.
|
||||
/// The caps apply only to audio the server re-encodes into a lossy codec. A track that is played directly is delivered as it was stored, a remux only
|
||||
/// repackages the stored codec without re-encoding it, and a lossless transcode is not reduced, so none of those deliveries is capped.
|
||||
/// </remarks>
|
||||
[DebuggerDisplay("{ToString()}")]
|
||||
public enum PlaybackStreamingQuality
|
||||
{
|
||||
/// <summary>
|
||||
/// The server chooses the quality, with no explicit cap.
|
||||
/// The server chooses the quality, with a default cap of 192 kbps for a lossy re-encode.
|
||||
/// </summary>
|
||||
Auto,
|
||||
|
||||
/// <summary>
|
||||
/// Normalized audio is capped at 96 kbps.
|
||||
/// A lossy normalized audio stream is capped at 96 kbps.
|
||||
/// </summary>
|
||||
Low,
|
||||
|
||||
/// <summary>
|
||||
/// Normalized audio is capped at 160 kbps.
|
||||
/// A lossy normalized audio stream is capped at 160 kbps.
|
||||
/// </summary>
|
||||
Medium,
|
||||
|
||||
/// <summary>
|
||||
/// Normalized audio is capped at 320 kbps.
|
||||
/// A lossy normalized audio stream is capped at 320 kbps.
|
||||
/// </summary>
|
||||
High,
|
||||
}
|
||||
@@ -1197,7 +1197,7 @@
|
||||
// playhead, the streamed fraction and the scrubbing state while the audio keeps playing.
|
||||
if (index === this.currentIndex)
|
||||
return this.queueEntries[index].descriptor;
|
||||
// Navigation history, repeat and shuffle belong to the queue model of step 18. This commit only moves the cursor.
|
||||
// Navigation history, repeat and shuffle belong to the queue model, which is not part of this cursor movement.
|
||||
const previousIndex = this.currentIndex;
|
||||
this.currentIndex = index;
|
||||
return this.applyTrackDescriptor(this.queueEntries[index].descriptor, previousIndex);
|
||||
|
||||
Reference in new issue
Block a user