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
Gondwana.Audio.GSND.AudioResourceDefinition Class Referencesealed

Defines one named audio resource in a GSND file. More...

Properties

string Key = string.Empty [get, set]
 Gets or sets the key.
AudioResourceSourceKind SourceKind = AudioResourceSourceKind.LooseFile [get, set]
 Gets or sets the source kind.
string? FilePath [get, set]
 Loose audio file path, preferably relative to the GSND file.
string? AssetsFilePath [get, set]
 GAF path for a packed audio source, preferably relative to the GSND file.
string? AssetEntryName [get, set]
 Audio entry name inside a packed GAF source.
string? SourceUri [get, set]
 Source URI for URI-backed audio.
string? SourceExtension [get, set]
 Optional format hint such as .wav or .ogg, required when a packed entry name has no extension.
float Volume = 1.0f [get, set]
 Gets or sets the playback volume.
float Pan [get, set]
 Gets or sets the stereo pan.
float PlaybackSpeed = 1.0f [get, set]
 Gets or sets the playback speed multiplier.
bool IsLooping [get, set]
 Gets or sets whether playback repeats when it reaches the end.

Detailed Description

Defines one named audio resource in a GSND file.

Definition at line 6 of file AudioResourceDefinition.cs.

Property Documentation

◆ AssetEntryName

string? Gondwana.Audio.GSND.AudioResourceDefinition.AssetEntryName
getset

Audio entry name inside a packed GAF source.

Definition at line 25 of file AudioResourceDefinition.cs.

◆ AssetsFilePath

string? Gondwana.Audio.GSND.AudioResourceDefinition.AssetsFilePath
getset

GAF path for a packed audio source, preferably relative to the GSND file.

Definition at line 22 of file AudioResourceDefinition.cs.

◆ FilePath

string? Gondwana.Audio.GSND.AudioResourceDefinition.FilePath
getset

Loose audio file path, preferably relative to the GSND file.

Definition at line 19 of file AudioResourceDefinition.cs.

◆ IsLooping

bool Gondwana.Audio.GSND.AudioResourceDefinition.IsLooping
getset

Gets or sets whether playback repeats when it reaches the end.

Definition at line 51 of file AudioResourceDefinition.cs.

◆ Key

string Gondwana.Audio.GSND.AudioResourceDefinition.Key = string.Empty
getset

Gets or sets the key.

Definition at line 11 of file AudioResourceDefinition.cs.

◆ Pan

float Gondwana.Audio.GSND.AudioResourceDefinition.Pan
getset

Gets or sets the stereo pan.

Definition at line 41 of file AudioResourceDefinition.cs.

◆ PlaybackSpeed

float Gondwana.Audio.GSND.AudioResourceDefinition.PlaybackSpeed = 1.0f
getset

Gets or sets the playback speed multiplier.

Definition at line 46 of file AudioResourceDefinition.cs.

◆ SourceExtension

string? Gondwana.Audio.GSND.AudioResourceDefinition.SourceExtension
getset

Optional format hint such as .wav or .ogg, required when a packed entry name has no extension.

Definition at line 31 of file AudioResourceDefinition.cs.

◆ SourceKind

AudioResourceSourceKind Gondwana.Audio.GSND.AudioResourceDefinition.SourceKind = AudioResourceSourceKind.LooseFile
getset

Gets or sets the source kind.

Definition at line 16 of file AudioResourceDefinition.cs.

◆ SourceUri

string? Gondwana.Audio.GSND.AudioResourceDefinition.SourceUri
getset

Source URI for URI-backed audio.

Definition at line 28 of file AudioResourceDefinition.cs.

◆ Volume

float Gondwana.Audio.GSND.AudioResourceDefinition.Volume = 1.0f
getset

Gets or sets the playback volume.

Definition at line 36 of file AudioResourceDefinition.cs.