Skip to content

ISoundLoader Interface

Definition

Namespace: Brine2D.Audio

Low-level sound effect loading interface.

For most use cases, use instead.

C#
public interface ISoundLoader : System.IDisposable

Derived
AudioService
HeadlessAudioService
IAudioService

Implements System.IDisposable

Methods
LoadSoundAsync\(string, CancellationToken\) Loads a sound effect from a file.
UnloadSound\(ISoundEffect\) Unloads a sound effect and frees its resources. Implementations must be idempotent — calling this twice with the same instance must not throw or cause a double-free of native resources.