// The Alc class root: the `Dll` const shared by the generated Alc.PInvoke imports and the hand-written // partials (Alc.Wrapper.cs, Errors.cs). namespace Brutal.OpenAlApi; /// /// Wrappers over the OpenAL context layer (alc.h): device and context lifetime, and audio /// capture. /// /// /// /// Lifetime is owned by , , and /// , returned by , /// , and /// . The raw /// , , and structs /// are non-owning handles used at the P/Invoke boundary; each wrapper class converts implicitly /// to its raw handle. /// /// /// Tear down in order: detach the current context ( /// with ), dispose every context, then dispose the device. Closing or /// destroying the same native object twice - including through copies of a raw handle - is /// undefined behavior. /// /// public static partial class Alc { // Logical native library name; mapped to the platform file by NativeLoader's DllImportResolver. internal const string Dll = "openal"; }