This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View 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);
}
}