Skip to content

IMusicLoader Interface

Definition

Namespace: Brine2D.Audio

Low-level music loading interface.

For most use cases, use instead.

C#
public interface IMusicLoader : System.IDisposable

Derived
AudioService
HeadlessAudioService
IAudioService

Implements System.IDisposable

Methods
LoadMusicAsync\(string, CancellationToken\) Loads music from a file.
UnloadMusic\(IMusic\) Unloads music 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.