mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
289 lines
14 KiB
C#
289 lines
14 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.OpenAlApi
|
|
{
|
|
using unsafe DevicePauseSOFTFn = delegate* unmanaged[Cdecl]<nint, void>;
|
|
using unsafe DeviceResumeSOFTFn = delegate* unmanaged[Cdecl]<nint, void>;
|
|
using unsafe EventCallbackSOFTFn = delegate* unmanaged[Cdecl]<void*, void*, void>;
|
|
using unsafe EventControlSOFTFn = delegate* unmanaged[Cdecl]<int, int*, Bool8, Bool8>;
|
|
using unsafe EventIsSupportedSOFTFn = delegate* unmanaged[Cdecl]<int, int, int>;
|
|
using unsafe GetInteger64vSOFTFn = delegate* unmanaged[Cdecl]<nint, int, int, long*, void>;
|
|
using unsafe GetStringiSOFTFn = delegate* unmanaged[Cdecl]<nint, int, int, byte*>;
|
|
using unsafe GetThreadContextFn = delegate* unmanaged[Cdecl]<nint>;
|
|
using unsafe IsRenderFormatSupportedSOFTFn = delegate* unmanaged[Cdecl]<nint, int, int, int, Bool8>;
|
|
using unsafe LoopbackOpenDeviceSOFTFn = delegate* unmanaged[Cdecl]<byte*, nint>;
|
|
using unsafe RenderSamplesSOFTFn = delegate* unmanaged[Cdecl]<nint, void*, int, void>;
|
|
using unsafe ReopenDeviceSOFTFn = delegate* unmanaged[Cdecl]<nint, byte*, int*, Bool8>;
|
|
using unsafe ResetDeviceSOFTFn = delegate* unmanaged[Cdecl]<nint, int*, Bool8>;
|
|
using unsafe SetThreadContextFn = delegate* unmanaged[Cdecl]<nint, Bool8>;
|
|
|
|
public static unsafe partial class Alc
|
|
{
|
|
/// <summary>
|
|
/// Cached unmanaged function pointers for the in-scope alext.h entry points, each resolved once via <c>alcGetProcAddress</c> against the null device. A null field means the loaded binary does not export that symbol; the paired <see cref="PInvoke"/> method throws instead of dereferencing it.
|
|
/// </summary>
|
|
internal static unsafe class ExtPointers
|
|
{
|
|
internal static readonly SetThreadContextFn alcSetThreadContext = (SetThreadContextFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcSetThreadContext"u8);
|
|
internal static readonly GetThreadContextFn alcGetThreadContext = (GetThreadContextFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcGetThreadContext"u8);
|
|
internal static readonly LoopbackOpenDeviceSOFTFn alcLoopbackOpenDeviceSOFT = (LoopbackOpenDeviceSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcLoopbackOpenDeviceSOFT"u8);
|
|
internal static readonly IsRenderFormatSupportedSOFTFn alcIsRenderFormatSupportedSOFT =
|
|
(IsRenderFormatSupportedSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcIsRenderFormatSupportedSOFT"u8);
|
|
internal static readonly RenderSamplesSOFTFn alcRenderSamplesSOFT = (RenderSamplesSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcRenderSamplesSOFT"u8);
|
|
internal static readonly DevicePauseSOFTFn alcDevicePauseSOFT = (DevicePauseSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcDevicePauseSOFT"u8);
|
|
internal static readonly DeviceResumeSOFTFn alcDeviceResumeSOFT = (DeviceResumeSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcDeviceResumeSOFT"u8);
|
|
internal static readonly GetStringiSOFTFn alcGetStringiSOFT = (GetStringiSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcGetStringiSOFT"u8);
|
|
internal static readonly ResetDeviceSOFTFn alcResetDeviceSOFT = (ResetDeviceSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcResetDeviceSOFT"u8);
|
|
internal static readonly GetInteger64vSOFTFn alcGetInteger64vSOFT = (GetInteger64vSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcGetInteger64vSOFT"u8);
|
|
internal static readonly ReopenDeviceSOFTFn alcReopenDeviceSOFT = (ReopenDeviceSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcReopenDeviceSOFT"u8);
|
|
internal static readonly EventIsSupportedSOFTFn alcEventIsSupportedSOFT = (EventIsSupportedSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcEventIsSupportedSOFT"u8);
|
|
internal static readonly EventControlSOFTFn alcEventControlSOFT = (EventControlSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcEventControlSOFT"u8);
|
|
internal static readonly EventCallbackSOFTFn alcEventCallbackSOFT = (EventCallbackSOFTFn)
|
|
Alc.GetProcAddressUtf8(AlcDevice.Null, "alcEventCallbackSOFT"u8);
|
|
}
|
|
|
|
public static partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_EXT_thread_local_context</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static Bool8 SetThreadContext(AlcContext context)
|
|
{
|
|
if (ExtPointers.alcSetThreadContext is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcSetThreadContext", "ALC_EXT_thread_local_context");
|
|
}
|
|
return ExtPointers.alcSetThreadContext(context.Pointer.Value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_EXT_thread_local_context</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static AlcContext GetThreadContext()
|
|
{
|
|
if (ExtPointers.alcGetThreadContext is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcGetThreadContext", "ALC_EXT_thread_local_context");
|
|
}
|
|
var result = ExtPointers.alcGetThreadContext();
|
|
return (void*)result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_loopback</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static AlcDevice LoopbackOpenDeviceSOFT(byte* deviceName)
|
|
{
|
|
if (ExtPointers.alcLoopbackOpenDeviceSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcLoopbackOpenDeviceSOFT", "ALC_SOFT_loopback");
|
|
}
|
|
var result = ExtPointers.alcLoopbackOpenDeviceSOFT(deviceName);
|
|
return (void*)result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_loopback</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static Bool8 IsRenderFormatSupportedSOFT(AlcDevice device, int freq, int channels, int type)
|
|
{
|
|
if (ExtPointers.alcIsRenderFormatSupportedSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcIsRenderFormatSupportedSOFT", "ALC_SOFT_loopback");
|
|
}
|
|
return ExtPointers.alcIsRenderFormatSupportedSOFT(device.Pointer.Value, freq, channels, type);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_loopback</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static void RenderSamplesSOFT(AlcDevice device, void* buffer, int samples)
|
|
{
|
|
if (ExtPointers.alcRenderSamplesSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcRenderSamplesSOFT", "ALC_SOFT_loopback");
|
|
}
|
|
ExtPointers.alcRenderSamplesSOFT(device.Pointer.Value, buffer, samples);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_pause_device</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static void DevicePauseSOFT(AlcDevice device)
|
|
{
|
|
if (ExtPointers.alcDevicePauseSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcDevicePauseSOFT", "ALC_SOFT_pause_device");
|
|
}
|
|
ExtPointers.alcDevicePauseSOFT(device.Pointer.Value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_pause_device</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static void DeviceResumeSOFT(AlcDevice device)
|
|
{
|
|
if (ExtPointers.alcDeviceResumeSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcDeviceResumeSOFT", "ALC_SOFT_pause_device");
|
|
}
|
|
ExtPointers.alcDeviceResumeSOFT(device.Pointer.Value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_HRTF</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static byte* GetStringiSOFT(AlcDevice device, int paramName, int index)
|
|
{
|
|
if (ExtPointers.alcGetStringiSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcGetStringiSOFT", "ALC_SOFT_HRTF");
|
|
}
|
|
return ExtPointers.alcGetStringiSOFT(device.Pointer.Value, paramName, index);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_HRTF</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static Bool8 ResetDeviceSOFT(AlcDevice device, int* attribs)
|
|
{
|
|
if (ExtPointers.alcResetDeviceSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcResetDeviceSOFT", "ALC_SOFT_HRTF");
|
|
}
|
|
return ExtPointers.alcResetDeviceSOFT(device.Pointer.Value, attribs);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_device_clock</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static void GetInteger64vSOFT(AlcDevice device, int pname, int size, long* values)
|
|
{
|
|
if (ExtPointers.alcGetInteger64vSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcGetInteger64vSOFT", "ALC_SOFT_device_clock");
|
|
}
|
|
ExtPointers.alcGetInteger64vSOFT(device.Pointer.Value, pname, size, values);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_reopen_device</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static Bool8 ReopenDeviceSOFT(AlcDevice device, byte* deviceName, int* attribs)
|
|
{
|
|
if (ExtPointers.alcReopenDeviceSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcReopenDeviceSOFT", "ALC_SOFT_reopen_device");
|
|
}
|
|
return ExtPointers.alcReopenDeviceSOFT(device.Pointer.Value, deviceName, attribs);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_system_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static int EventIsSupportedSOFT(int eventType, int deviceType)
|
|
{
|
|
if (ExtPointers.alcEventIsSupportedSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcEventIsSupportedSOFT", "ALC_SOFT_system_events");
|
|
}
|
|
return ExtPointers.alcEventIsSupportedSOFT(eventType, deviceType);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_system_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static Bool8 EventControlSOFT(int count, int* events, Bool8 enable)
|
|
{
|
|
if (ExtPointers.alcEventControlSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcEventControlSOFT", "ALC_SOFT_system_events");
|
|
}
|
|
return ExtPointers.alcEventControlSOFT(count, events, enable);
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Provided by <c>ALC_SOFT_system_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static void EventCallbackSOFT(void* callback, void* userParam)
|
|
{
|
|
if (ExtPointers.alcEventCallbackSOFT is null)
|
|
{
|
|
AlExtensionException.ThrowMissing("alcEventCallbackSOFT", "ALC_SOFT_system_events");
|
|
}
|
|
ExtPointers.alcEventCallbackSOFT(callback, userParam);
|
|
}
|
|
}
|
|
}
|
|
}
|