mirror of
https://github.com/unclshura/ABStemPlayer.git
synced 2026-08-07 00:43:38 +00:00
15 lines
495 B
C#
15 lines
495 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);
|
|
}
|