Source Type
Where a registered sound or music track loads from. The choice is explicit and typed — no fallback guessing from the file extension.
Pipeline loads an MGCB-compiled asset through the game's
ContentManager — the guaranteed path: every format the pipeline
imports works, on every DesktopGL/WindowsDX backend.
File loads a loose file from disk at runtime. Sound effects support
WAV (RIFF) files only; music goes through Song.FromUri, which uses
the platform decoders (the file the path points to must ship with the
game — copy it to the output directory yourself).
Union cases
| Union case |
Description
|
Full Usage:
File string
Parameters:
string
|
A loose file path, relative to the working directory (e.g.
|
Full Usage:
Pipeline string
Parameters:
string
|
An MGCB asset name, loaded with
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsFile
Returns: bool
|
|
Full Usage:
this.IsPipeline
Returns: bool
|
|
Mibo