Struct MusicPosition
Where the music is, as CurrentMusicPosition: which part, how far into it, and how long it is.
public readonly record struct MusicPosition : IEquatable<MusicPosition>
- Implements
- Inherited Members
Constructors
MusicPosition(MusicPhase, TimeSpan, TimeSpan)
Where the music is, as CurrentMusicPosition: which part, how far into it, and how long it is.
public MusicPosition(MusicPhase Phase, TimeSpan Position, TimeSpan Length)
Parameters
PhaseMusicPhaseThe part playing; None without music.
PositionTimeSpanHow far into the part. For the body, how far into the current pass: it starts again from zero each time the body loops.
LengthTimeSpanThe part's length, or zero when its file doesn't say.
Properties
Length
The part's length, or zero when its file doesn't say.
public TimeSpan Length { get; init; }
Property Value
Phase
The part playing; None without music.
public MusicPhase Phase { get; init; }
Property Value
Position
How far into the part. For the body, how far into the current pass: it starts again from zero each time the body loops.
public TimeSpan Position { get; init; }