mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
122
Brutal.OpenAl/Generated/Alc/Alc.PInvoke.gen.cs
Normal file
122
Brutal.OpenAl/Generated/Alc/Alc.PInvoke.gen.cs
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue