mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
18
Brutal.OpenAl/Manual/Params.cs
Normal file
18
Brutal.OpenAl/Manual/Params.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
namespace Brutal.OpenAlApi.Params;
|
||||
|
||||
public static class DeviceParams
|
||||
{
|
||||
extension(AlcDevice device)
|
||||
{
|
||||
public ReadOnlySpan<byte> GetString(AlcGetString param) => Alc.GetStringUtf8(device, param);
|
||||
|
||||
public int Get(AlcInteger param) => Alc.GetInteger(device, param);
|
||||
}
|
||||
|
||||
extension(AlcCaptureDevice capture)
|
||||
{
|
||||
public ReadOnlySpan<byte> GetString(AlcGetString param) => Alc.GetStringUtf8(capture, param);
|
||||
|
||||
public int Get(AlcInteger param) => Alc.GetInteger(capture, param);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue