mirror of
https://github.com/unclshura/ABStemPlayer.git
synced 2026-08-07 00:43:38 +00:00
17 lines
595 B
C#
17 lines
595 B
C#
namespace AudioCore.Models;
|
|
|
|
public sealed class StemTrack
|
|
{
|
|
public StemType Type { get; init; }
|
|
public string Name { get; init; } = string.Empty;
|
|
public string FilePath { get; init; } = string.Empty;
|
|
public TimeSpan Duration { get; set; }
|
|
public int SampleRate { get; set; }
|
|
public int Channels { get; set; }
|
|
public float[] Waveform { get; set; } = [];
|
|
|
|
public long TotalFrames => (long)(Duration.TotalMilliseconds * SampleRate / 1000.0);
|
|
|
|
public override string ToString() => $"{Duration} {SampleRate}*{Channels} {Type}: {FilePath}";
|
|
}
|