mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
122 lines
5 KiB
C#
122 lines
5 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// Create and attach a context to the given device.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcCreateContext")]
|
|
public static partial AlcContext CreateContext(AlcDevice device, int* attrlist);
|
|
|
|
[LibraryImport(Dll, EntryPoint = "alcMakeContextCurrent")]
|
|
public static partial Bool8 MakeContextCurrent(AlcContext context);
|
|
|
|
/// <summary>
|
|
/// Resumes processing updates for the given context.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcProcessContext")]
|
|
public static partial void ProcessContext(AlcContext context);
|
|
|
|
/// <summary>
|
|
/// Suspends updates for the given context.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcSuspendContext")]
|
|
public static partial void SuspendContext(AlcContext context);
|
|
|
|
/// <summary>
|
|
/// Remove a context from its device and destroys it.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcDestroyContext")]
|
|
public static partial void DestroyContext(AlcContext context);
|
|
|
|
/// <summary>
|
|
/// Returns the currently active context.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcGetCurrentContext")]
|
|
public static partial AlcContext GetCurrentContext();
|
|
|
|
/// <summary>
|
|
/// Returns the device that a particular context is attached to.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcGetContextsDevice")]
|
|
public static partial AlcDevice GetContextsDevice(AlcContext context);
|
|
|
|
/// <summary>
|
|
/// Opens the named playback device.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcOpenDevice")]
|
|
public static partial AlcDevice OpenDevice(byte* devicename);
|
|
|
|
/// <summary>
|
|
/// Closes the given playback device.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcCloseDevice")]
|
|
public static partial Bool8 CloseDevice(AlcDevice device);
|
|
|
|
/// <summary>
|
|
/// Obtain the most recent Device error.
|
|
/// </summary>
|
|
[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);
|
|
|
|
/// <summary>
|
|
/// Returns information about the device, and error strings.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcGetString")]
|
|
public static partial byte* GetString(AlcDevice device, int param);
|
|
|
|
/// <summary>
|
|
/// Returns information about the device and the version of OpenAL.
|
|
/// </summary>
|
|
[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
|
|
);
|
|
|
|
/// <summary>
|
|
/// Closes the given capture device.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcCaptureCloseDevice")]
|
|
public static partial Bool8 CaptureCloseDevice(AlcCaptureDevice device);
|
|
|
|
/// <summary>
|
|
/// Starts capturing samples into the device buffer.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcCaptureStart")]
|
|
public static partial void CaptureStart(AlcCaptureDevice device);
|
|
|
|
/// <summary>
|
|
/// Stops capturing samples. Samples in the device buffer remain available.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcCaptureStop")]
|
|
public static partial void CaptureStop(AlcCaptureDevice device);
|
|
|
|
/// <summary>
|
|
/// Reads samples from the device buffer.
|
|
/// </summary>
|
|
[LibraryImport(Dll, EntryPoint = "alcCaptureSamples")]
|
|
public static partial void CaptureSamples(AlcCaptureDevice device, void* buffer, int samples);
|
|
}
|
|
}
|
|
}
|