Vixen
02b45cc4
csharp
public record class MusicAsset

A whole piece of interactive music, as a file declares it.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Segments and the rules for getting between them, which together are what a composer actually delivers: not a track, but a set of pieces and a description of how the game gets from one to another. Everything gameplay has to know is the name of a parameter.

No file format here, as with every other asset in this assembly. The editor writes YAML, the content build bakes a chunk, and a shipping runtime reads the chunk.

Fields and properties (6)

  • public string Name

    What it is called.

  • public string Bus

    Which bus it plays on, by name. Empty is the master.

  • public string Start

    Which segment it starts on. Empty starts nothing until gameplay asks.

  • public float CrossfadeSeconds

    How long the outgoing segment takes to get out of the way.

  • public MusicSegmentAsset[] Segments

    The pieces.

  • public MusicTransitionAsset[] Transitions

    The rules for getting between them.

Used by (4)

  • MusicBuilderVixen.Audio
  • MusicPlayerTestsVixen.Audio.Tests
  • TypeRegistrationVixen.Audio
  • Vixen_Audio_Assets_MusicAssetSerializerVixen.Audio