// The Al class root: the `Dll` const shared by the generated Al.PInvoke imports and the hand-written
// partials (Al.Wrapper.cs, Al.Listener.cs, Errors.cs).
namespace Brutal.OpenAlApi;
///
/// Wrappers over core OpenAL (al.h): buffers, sources, the listener, and playback state.
///
///
///
/// Most AL calls do not return errors. OpenAL records the first error per context/thread and
/// holds it until it is read with alGetError, which also clears it.
/// reads the error and throws if one was
/// set; reads it without throwing. Methods here never check for errors
/// automatically - call yourself, for example after initialization,
/// after loading a resource, and per-frame in debug builds.
///
///
/// Because only the first error is recorded, an unchecked error is attributed to whichever call
/// checks next - check promptly if you need to know which call failed. AL calls act on the
/// context current on the calling thread; with no current context,
/// throws (openal-soft reports AL_INVALID_OPERATION).
///
///
public static partial class Al
{
// Logical native library name; mapped to the platform file by NativeLoader's DllImportResolver.
internal const string Dll = "openal";
}