Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
AudioResourceDefinition.cs
1namespace Gondwana.Audio.GSND;
2
6public sealed class AudioResourceDefinition
7{
11 public string Key { get; set; } = string.Empty;
12
17
19 public string? FilePath { get; set; }
20
22 public string? AssetsFilePath { get; set; }
23
25 public string? AssetEntryName { get; set; }
26
28 public string? SourceUri { get; set; }
29
31 public string? SourceExtension { get; set; }
32
36 public float Volume { get; set; } = 1.0f;
37
41 public float Pan { get; set; }
42
46 public float PlaybackSpeed { get; set; } = 1.0f;
47
51 public bool IsLooping { get; set; }
52}
Defines one named audio resource in a GSND file.
bool IsLooping
Gets or sets whether playback repeats when it reaches the end.
string? AssetEntryName
Audio entry name inside a packed GAF source.
string? SourceUri
Source URI for URI-backed audio.
float Volume
Gets or sets the playback volume.
string? AssetsFilePath
GAF path for a packed audio source, preferably relative to the GSND file.
string? SourceExtension
Optional format hint such as .wav or .ogg, required when a packed entry name has no extension.
AudioResourceSourceKind SourceKind
Gets or sets the source kind.
string? FilePath
Loose audio file path, preferably relative to the GSND file.
float PlaybackSpeed
Gets or sets the playback speed multiplier.
AudioResourceSourceKind
Identifies how a GSND audio resource locates its underlying media.