// // Generated by Brutal.OpenAl.Generate; do not edit by hand. #nullable enable namespace Brutal.OpenAlApi { public static unsafe partial class Alc { public static partial class PInvoke { /// /// Create and attach a context to the given device. /// [LibraryImport(Dll, EntryPoint = "alcCreateContext")] public static partial AlcContext CreateContext(AlcDevice device, int* attrlist); [LibraryImport(Dll, EntryPoint = "alcMakeContextCurrent")] public static partial Bool8 MakeContextCurrent(AlcContext context); /// /// Resumes processing updates for the given context. /// [LibraryImport(Dll, EntryPoint = "alcProcessContext")] public static partial void ProcessContext(AlcContext context); /// /// Suspends updates for the given context. /// [LibraryImport(Dll, EntryPoint = "alcSuspendContext")] public static partial void SuspendContext(AlcContext context); /// /// Remove a context from its device and destroys it. /// [LibraryImport(Dll, EntryPoint = "alcDestroyContext")] public static partial void DestroyContext(AlcContext context); /// /// Returns the currently active context. /// [LibraryImport(Dll, EntryPoint = "alcGetCurrentContext")] public static partial AlcContext GetCurrentContext(); /// /// Returns the device that a particular context is attached to. /// [LibraryImport(Dll, EntryPoint = "alcGetContextsDevice")] public static partial AlcDevice GetContextsDevice(AlcContext context); /// /// Opens the named playback device. /// [LibraryImport(Dll, EntryPoint = "alcOpenDevice")] public static partial AlcDevice OpenDevice(byte* devicename); /// /// Closes the given playback device. /// [LibraryImport(Dll, EntryPoint = "alcCloseDevice")] public static partial Bool8 CloseDevice(AlcDevice device); /// /// Obtain the most recent Device error. /// [LibraryImport(Dll, EntryPoint = "alcGetError")] public static partial int GetError(AlcDevice device); [LibraryImport(Dll, EntryPoint = "alcIsExtensionPresent")] public static partial Bool8 IsExtensionPresent(AlcDevice device, byte* extname); [LibraryImport(Dll, EntryPoint = "alcGetProcAddress")] public static partial void* GetProcAddress(AlcDevice device, byte* funcname); [LibraryImport(Dll, EntryPoint = "alcGetEnumValue")] public static partial int GetEnumValue(AlcDevice device, byte* enumname); /// /// Returns information about the device, and error strings. /// [LibraryImport(Dll, EntryPoint = "alcGetString")] public static partial byte* GetString(AlcDevice device, int param); /// /// Returns information about the device and the version of OpenAL. /// [LibraryImport(Dll, EntryPoint = "alcGetIntegerv")] public static partial void GetIntegerv(AlcDevice device, int param, int size, int* values); [LibraryImport(Dll, EntryPoint = "alcCaptureOpenDevice")] public static partial AlcCaptureDevice CaptureOpenDevice( byte* devicename, uint frequency, int format, int buffersize ); /// /// Closes the given capture device. /// [LibraryImport(Dll, EntryPoint = "alcCaptureCloseDevice")] public static partial Bool8 CaptureCloseDevice(AlcCaptureDevice device); /// /// Starts capturing samples into the device buffer. /// [LibraryImport(Dll, EntryPoint = "alcCaptureStart")] public static partial void CaptureStart(AlcCaptureDevice device); /// /// Stops capturing samples. Samples in the device buffer remain available. /// [LibraryImport(Dll, EntryPoint = "alcCaptureStop")] public static partial void CaptureStop(AlcCaptureDevice device); /// /// Reads samples from the device buffer. /// [LibraryImport(Dll, EntryPoint = "alcCaptureSamples")] public static partial void CaptureSamples(AlcCaptureDevice device, void* buffer, int samples); } } }