mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
198 lines
5.9 KiB
C#
198 lines
5.9 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using static Brutal.OpenAlApi.Al.Constants;
|
|
|
|
namespace Brutal.OpenAlApi
|
|
{
|
|
public readonly unsafe partial struct AlBuffer
|
|
{
|
|
/// <summary>
|
|
/// Buffer frequency/sample rate (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_FREQUENCY</c> (<c>alGetBufferi</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int Frequency
|
|
{
|
|
get => Al.GetBufferi(Name, AL_FREQUENCY);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Buffer bits per sample (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_BITS</c> (<c>alGetBufferi</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int Bits
|
|
{
|
|
get => Al.GetBufferi(Name, AL_BITS);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Buffer channel count (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_CHANNELS</c> (<c>alGetBufferi</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int Channels
|
|
{
|
|
get => Al.GetBufferi(Name, AL_CHANNELS);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Buffer data size in bytes (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_SIZE</c> (<c>alGetBufferi</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int Size
|
|
{
|
|
get => Al.GetBufferi(Name, AL_SIZE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_LOOP_POINTS_SOFT</c> (<c>alBufferiv</c>/<c>alGetBufferiv</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint[2]</c>; default <c>0,0</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int2 LoopPoints
|
|
{
|
|
get => Al.GetBufferiv2(Name, AL_LOOP_POINTS_SOFT);
|
|
set => Al.SetBufferiv2(Name, AL_LOOP_POINTS_SOFT, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_UNPACK_BLOCK_ALIGNMENT_SOFT</c> (<c>alBufferi</c>/<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>; minimum 0; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int UnpackBlockAlignment
|
|
{
|
|
get => Al.GetBufferi(Name, AL_UNPACK_BLOCK_ALIGNMENT_SOFT);
|
|
set => Al.PInvoke.Bufferi(Name, AL_UNPACK_BLOCK_ALIGNMENT_SOFT, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_PACK_BLOCK_ALIGNMENT_SOFT</c> (<c>alBufferi</c>/<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>; minimum 0; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int PackBlockAlignment
|
|
{
|
|
get => Al.GetBufferi(Name, AL_PACK_BLOCK_ALIGNMENT_SOFT);
|
|
set => Al.PInvoke.Bufferi(Name, AL_PACK_BLOCK_ALIGNMENT_SOFT, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_AMBISONIC_LAYOUT_SOFT</c> (<c>alBufferi</c>/<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>; default <c>AL_FUMA_SOFT</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlAmbisonicLayout AmbisonicLayout
|
|
{
|
|
get => (AlAmbisonicLayout)Al.GetBufferi(Name, AL_AMBISONIC_LAYOUT_SOFT);
|
|
set => Al.PInvoke.Bufferi(Name, AL_AMBISONIC_LAYOUT_SOFT, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_AMBISONIC_SCALING_SOFT</c> (<c>alBufferi</c>/<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>; default <c>AL_FUMA_SOFT</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlAmbisonicScaling AmbisonicScaling
|
|
{
|
|
get => (AlAmbisonicScaling)Al.GetBufferi(Name, AL_AMBISONIC_SCALING_SOFT);
|
|
set => Al.PInvoke.Bufferi(Name, AL_AMBISONIC_SCALING_SOFT, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_UNPACK_AMBISONIC_ORDER_SOFT</c> (<c>alBufferi</c>/<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>; range 1 to 14; default 1.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int UnpackAmbisonicOrder
|
|
{
|
|
get => Al.GetBufferi(Name, AL_UNPACK_AMBISONIC_ORDER_SOFT);
|
|
set => Al.PInvoke.Bufferi(Name, AL_UNPACK_AMBISONIC_ORDER_SOFT, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets <c>AL_BYTE_LENGTH_SOFT</c> (<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int ByteLength
|
|
{
|
|
get => Al.GetBufferi(Name, AL_BYTE_LENGTH_SOFT);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets <c>AL_SAMPLE_LENGTH_SOFT</c> (<c>alGetBufferi</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int SampleLength
|
|
{
|
|
get => Al.GetBufferi(Name, AL_SAMPLE_LENGTH_SOFT);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets <c>AL_SEC_LENGTH_SOFT</c> (<c>alGetBufferf</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float SecLength
|
|
{
|
|
get => Al.GetBufferf(Name, AL_SEC_LENGTH_SOFT);
|
|
}
|
|
}
|
|
}
|