Class SoundEventBank
Namespace: ValveResourceFormat.Renderer.Audio
Assembly: Renderer.dll
Stores sound event definitions loaded from soundevent (vsndevts) files.
csharp
public sealed class SoundEventBankInheritance
Properties
Count
Gets the number of loaded sound event definitions.
csharp
public int Count { get; }Property Value
Methods
AddSoundEvent(string, KVObject)
Adds a single sound event definition. An existing definition with the same name is kept.
csharp
public void AddSoundEvent(string name, KVObject soundEventData)Parameters
name string
soundEventData KVObject
AddSoundEvents(KVObject)
Adds all sound event definitions from a parsed soundevents file.
csharp
public void AddSoundEvents(KVObject soundEventsFile)Parameters
soundEventsFile KVObject
GetSoundEvent(string)
Gets a sound event definition by name (case-insensitive), or null when unknown. Resolved and parsed once, then cached.
csharp
public SoundEventDefinition? GetSoundEvent(string name)Parameters
name string

