Table of Contents

Struct MusicPosition

Namespace
BSGameLib.Game.Audio
Assembly
BSGameLib.Game.dll

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

Phase MusicPhase

The part playing; None without music.

Position TimeSpan

How far into the part. For the body, how far into the current pass: it starts again from zero each time the body loops.

Length TimeSpan

The 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

TimeSpan

Phase

The part playing; None without music.

public MusicPhase Phase { get; init; }

Property Value

MusicPhase

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; }

Property Value

TimeSpan