This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37
101 changed files with 784842 additions and 0 deletions

View file

@ -0,0 +1,701 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class Al
{
public static class Constants
{
public const int AL_NONE = unchecked((int)0);
public const int AL_FALSE = unchecked((int)0);
public const int AL_TRUE = unchecked((int)1);
public const int AL_SOURCE_RELATIVE = unchecked((int)0x202);
public const int AL_CONE_INNER_ANGLE = unchecked((int)0x1001);
public const int AL_CONE_OUTER_ANGLE = unchecked((int)0x1002);
public const int AL_PITCH = unchecked((int)0x1003);
public const int AL_POSITION = unchecked((int)0x1004);
public const int AL_DIRECTION = unchecked((int)0x1005);
public const int AL_VELOCITY = unchecked((int)0x1006);
public const int AL_LOOPING = unchecked((int)0x1007);
public const int AL_BUFFER = unchecked((int)0x1009);
public const int AL_GAIN = unchecked((int)0x100A);
public const int AL_MIN_GAIN = unchecked((int)0x100D);
public const int AL_MAX_GAIN = unchecked((int)0x100E);
public const int AL_ORIENTATION = unchecked((int)0x100F);
public const int AL_SOURCE_STATE = unchecked((int)0x1010);
public const int AL_INITIAL = unchecked((int)0x1011);
public const int AL_PLAYING = unchecked((int)0x1012);
public const int AL_PAUSED = unchecked((int)0x1013);
public const int AL_STOPPED = unchecked((int)0x1014);
public const int AL_BUFFERS_QUEUED = unchecked((int)0x1015);
public const int AL_BUFFERS_PROCESSED = unchecked((int)0x1016);
public const int AL_REFERENCE_DISTANCE = unchecked((int)0x1020);
public const int AL_ROLLOFF_FACTOR = unchecked((int)0x1021);
public const int AL_CONE_OUTER_GAIN = unchecked((int)0x1022);
public const int AL_MAX_DISTANCE = unchecked((int)0x1023);
public const int AL_FORMAT_MONO8 = unchecked((int)0x1100);
public const int AL_FORMAT_MONO16 = unchecked((int)0x1101);
public const int AL_FORMAT_STEREO8 = unchecked((int)0x1102);
public const int AL_FORMAT_STEREO16 = unchecked((int)0x1103);
public const int AL_FREQUENCY = unchecked((int)0x2001);
public const int AL_SIZE = unchecked((int)0x2004);
public const int AL_UNUSED = unchecked((int)0x2010);
public const int AL_PENDING = unchecked((int)0x2011);
public const int AL_PROCESSED = unchecked((int)0x2012);
public const int AL_NO_ERROR = unchecked((int)0);
public const int AL_INVALID_NAME = unchecked((int)0xA001);
public const int AL_INVALID_ENUM = unchecked((int)0xA002);
public const int AL_INVALID_VALUE = unchecked((int)0xA003);
public const int AL_INVALID_OPERATION = unchecked((int)0xA004);
public const int AL_OUT_OF_MEMORY = unchecked((int)0xA005);
public const int AL_VENDOR = unchecked((int)0xB001);
public const int AL_VERSION = unchecked((int)0xB002);
public const int AL_RENDERER = unchecked((int)0xB003);
public const int AL_EXTENSIONS = unchecked((int)0xB004);
public const int AL_DOPPLER_FACTOR = unchecked((int)0xC000);
public const int AL_DOPPLER_VELOCITY = unchecked((int)0xC001);
public const int AL_DISTANCE_MODEL = unchecked((int)0xD000);
[Obsolete("Use -1 instead")]
public const int AL_INVALID = unchecked((int)-1);
[Obsolete("Use AL_INVALID_ENUM instead")]
public const int AL_ILLEGAL_ENUM = unchecked((int)AL_INVALID_ENUM);
[Obsolete("Use AL_INVALID_OPERATION instead")]
public const int AL_ILLEGAL_COMMAND = unchecked((int)AL_INVALID_OPERATION);
public const int AL_INVERSE_DISTANCE = unchecked((int)0xD001);
public const int AL_INVERSE_DISTANCE_CLAMPED = unchecked((int)0xD002);
public const int AL_SEC_OFFSET = unchecked((int)0x1024);
public const int AL_SAMPLE_OFFSET = unchecked((int)0x1025);
public const int AL_BYTE_OFFSET = unchecked((int)0x1026);
public const int AL_SOURCE_TYPE = unchecked((int)0x1027);
public const int AL_STATIC = unchecked((int)0x1028);
public const int AL_STREAMING = unchecked((int)0x1029);
public const int AL_UNDETERMINED = unchecked((int)0x1030);
public const int AL_BITS = unchecked((int)0x2002);
public const int AL_CHANNELS = unchecked((int)0x2003);
public const int AL_SPEED_OF_SOUND = unchecked((int)0xC003);
public const int AL_LINEAR_DISTANCE = unchecked((int)0xD003);
public const int AL_LINEAR_DISTANCE_CLAMPED = unchecked((int)0xD004);
public const int AL_EXPONENT_DISTANCE = unchecked((int)0xD005);
public const int AL_EXPONENT_DISTANCE_CLAMPED = unchecked((int)0xD006);
public const int AL_METERS_PER_UNIT = unchecked((int)0x20004);
public const int AL_DIRECT_FILTER = unchecked((int)0x20005);
public const int AL_AUXILIARY_SEND_FILTER = unchecked((int)0x20006);
public const int AL_AIR_ABSORPTION_FACTOR = unchecked((int)0x20007);
public const int AL_ROOM_ROLLOFF_FACTOR = unchecked((int)0x20008);
public const int AL_CONE_OUTER_GAINHF = unchecked((int)0x20009);
public const int AL_DIRECT_FILTER_GAINHF_AUTO = unchecked((int)0x2000A);
public const int AL_AUXILIARY_SEND_FILTER_GAIN_AUTO = unchecked((int)0x2000B);
public const int AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO = unchecked((int)0x2000C);
public const int AL_REVERB_DENSITY = unchecked((int)0x0001);
public const int AL_REVERB_DIFFUSION = unchecked((int)0x0002);
public const int AL_REVERB_GAIN = unchecked((int)0x0003);
public const int AL_REVERB_GAINHF = unchecked((int)0x0004);
public const int AL_REVERB_DECAY_TIME = unchecked((int)0x0005);
public const int AL_REVERB_DECAY_HFRATIO = unchecked((int)0x0006);
public const int AL_REVERB_REFLECTIONS_GAIN = unchecked((int)0x0007);
public const int AL_REVERB_REFLECTIONS_DELAY = unchecked((int)0x0008);
public const int AL_REVERB_LATE_REVERB_GAIN = unchecked((int)0x0009);
public const int AL_REVERB_LATE_REVERB_DELAY = unchecked((int)0x000A);
public const int AL_REVERB_AIR_ABSORPTION_GAINHF = unchecked((int)0x000B);
public const int AL_REVERB_ROOM_ROLLOFF_FACTOR = unchecked((int)0x000C);
public const int AL_REVERB_DECAY_HFLIMIT = unchecked((int)0x000D);
public const int AL_EAXREVERB_DENSITY = unchecked((int)0x0001);
public const int AL_EAXREVERB_DIFFUSION = unchecked((int)0x0002);
public const int AL_EAXREVERB_GAIN = unchecked((int)0x0003);
public const int AL_EAXREVERB_GAINHF = unchecked((int)0x0004);
public const int AL_EAXREVERB_GAINLF = unchecked((int)0x0005);
public const int AL_EAXREVERB_DECAY_TIME = unchecked((int)0x0006);
public const int AL_EAXREVERB_DECAY_HFRATIO = unchecked((int)0x0007);
public const int AL_EAXREVERB_DECAY_LFRATIO = unchecked((int)0x0008);
public const int AL_EAXREVERB_REFLECTIONS_GAIN = unchecked((int)0x0009);
public const int AL_EAXREVERB_REFLECTIONS_DELAY = unchecked((int)0x000A);
public const int AL_EAXREVERB_REFLECTIONS_PAN = unchecked((int)0x000B);
public const int AL_EAXREVERB_LATE_REVERB_GAIN = unchecked((int)0x000C);
public const int AL_EAXREVERB_LATE_REVERB_DELAY = unchecked((int)0x000D);
public const int AL_EAXREVERB_LATE_REVERB_PAN = unchecked((int)0x000E);
public const int AL_EAXREVERB_ECHO_TIME = unchecked((int)0x000F);
public const int AL_EAXREVERB_ECHO_DEPTH = unchecked((int)0x0010);
public const int AL_EAXREVERB_MODULATION_TIME = unchecked((int)0x0011);
public const int AL_EAXREVERB_MODULATION_DEPTH = unchecked((int)0x0012);
public const int AL_EAXREVERB_AIR_ABSORPTION_GAINHF = unchecked((int)0x0013);
public const int AL_EAXREVERB_HFREFERENCE = unchecked((int)0x0014);
public const int AL_EAXREVERB_LFREFERENCE = unchecked((int)0x0015);
public const int AL_EAXREVERB_ROOM_ROLLOFF_FACTOR = unchecked((int)0x0016);
public const int AL_EAXREVERB_DECAY_HFLIMIT = unchecked((int)0x0017);
public const int AL_CHORUS_WAVEFORM = unchecked((int)0x0001);
public const int AL_CHORUS_PHASE = unchecked((int)0x0002);
public const int AL_CHORUS_RATE = unchecked((int)0x0003);
public const int AL_CHORUS_DEPTH = unchecked((int)0x0004);
public const int AL_CHORUS_FEEDBACK = unchecked((int)0x0005);
public const int AL_CHORUS_DELAY = unchecked((int)0x0006);
public const int AL_DISTORTION_EDGE = unchecked((int)0x0001);
public const int AL_DISTORTION_GAIN = unchecked((int)0x0002);
public const int AL_DISTORTION_LOWPASS_CUTOFF = unchecked((int)0x0003);
public const int AL_DISTORTION_EQCENTER = unchecked((int)0x0004);
public const int AL_DISTORTION_EQBANDWIDTH = unchecked((int)0x0005);
public const int AL_ECHO_DELAY = unchecked((int)0x0001);
public const int AL_ECHO_LRDELAY = unchecked((int)0x0002);
public const int AL_ECHO_DAMPING = unchecked((int)0x0003);
public const int AL_ECHO_FEEDBACK = unchecked((int)0x0004);
public const int AL_ECHO_SPREAD = unchecked((int)0x0005);
public const int AL_FLANGER_WAVEFORM = unchecked((int)0x0001);
public const int AL_FLANGER_PHASE = unchecked((int)0x0002);
public const int AL_FLANGER_RATE = unchecked((int)0x0003);
public const int AL_FLANGER_DEPTH = unchecked((int)0x0004);
public const int AL_FLANGER_FEEDBACK = unchecked((int)0x0005);
public const int AL_FLANGER_DELAY = unchecked((int)0x0006);
public const int AL_FREQUENCY_SHIFTER_FREQUENCY = unchecked((int)0x0001);
public const int AL_FREQUENCY_SHIFTER_LEFT_DIRECTION = unchecked((int)0x0002);
public const int AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION = unchecked((int)0x0003);
public const int AL_VOCAL_MORPHER_PHONEMEA = unchecked((int)0x0001);
public const int AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING = unchecked((int)0x0002);
public const int AL_VOCAL_MORPHER_PHONEMEB = unchecked((int)0x0003);
public const int AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING = unchecked((int)0x0004);
public const int AL_VOCAL_MORPHER_WAVEFORM = unchecked((int)0x0005);
public const int AL_VOCAL_MORPHER_RATE = unchecked((int)0x0006);
public const int AL_PITCH_SHIFTER_COARSE_TUNE = unchecked((int)0x0001);
public const int AL_PITCH_SHIFTER_FINE_TUNE = unchecked((int)0x0002);
public const int AL_RING_MODULATOR_FREQUENCY = unchecked((int)0x0001);
public const int AL_RING_MODULATOR_HIGHPASS_CUTOFF = unchecked((int)0x0002);
public const int AL_RING_MODULATOR_WAVEFORM = unchecked((int)0x0003);
public const int AL_AUTOWAH_ATTACK_TIME = unchecked((int)0x0001);
public const int AL_AUTOWAH_RELEASE_TIME = unchecked((int)0x0002);
public const int AL_AUTOWAH_RESONANCE = unchecked((int)0x0003);
public const int AL_AUTOWAH_PEAK_GAIN = unchecked((int)0x0004);
public const int AL_COMPRESSOR_ONOFF = unchecked((int)0x0001);
public const int AL_EQUALIZER_LOW_GAIN = unchecked((int)0x0001);
public const int AL_EQUALIZER_LOW_CUTOFF = unchecked((int)0x0002);
public const int AL_EQUALIZER_MID1_GAIN = unchecked((int)0x0003);
public const int AL_EQUALIZER_MID1_CENTER = unchecked((int)0x0004);
public const int AL_EQUALIZER_MID1_WIDTH = unchecked((int)0x0005);
public const int AL_EQUALIZER_MID2_GAIN = unchecked((int)0x0006);
public const int AL_EQUALIZER_MID2_CENTER = unchecked((int)0x0007);
public const int AL_EQUALIZER_MID2_WIDTH = unchecked((int)0x0008);
public const int AL_EQUALIZER_HIGH_GAIN = unchecked((int)0x0009);
public const int AL_EQUALIZER_HIGH_CUTOFF = unchecked((int)0x000A);
public const int AL_EFFECT_FIRST_PARAMETER = unchecked((int)0x0000);
public const int AL_EFFECT_LAST_PARAMETER = unchecked((int)0x8000);
public const int AL_EFFECT_TYPE = unchecked((int)0x8001);
public const int AL_EFFECT_NULL = unchecked((int)0x0000);
public const int AL_EFFECT_REVERB = unchecked((int)0x0001);
public const int AL_EFFECT_CHORUS = unchecked((int)0x0002);
public const int AL_EFFECT_DISTORTION = unchecked((int)0x0003);
public const int AL_EFFECT_ECHO = unchecked((int)0x0004);
public const int AL_EFFECT_FLANGER = unchecked((int)0x0005);
public const int AL_EFFECT_FREQUENCY_SHIFTER = unchecked((int)0x0006);
public const int AL_EFFECT_VOCAL_MORPHER = unchecked((int)0x0007);
public const int AL_EFFECT_PITCH_SHIFTER = unchecked((int)0x0008);
public const int AL_EFFECT_RING_MODULATOR = unchecked((int)0x0009);
public const int AL_EFFECT_AUTOWAH = unchecked((int)0x000A);
public const int AL_EFFECT_COMPRESSOR = unchecked((int)0x000B);
public const int AL_EFFECT_EQUALIZER = unchecked((int)0x000C);
public const int AL_EFFECT_EAXREVERB = unchecked((int)0x8000);
public const int AL_EFFECTSLOT_EFFECT = unchecked((int)0x0001);
public const int AL_EFFECTSLOT_GAIN = unchecked((int)0x0002);
public const int AL_EFFECTSLOT_AUXILIARY_SEND_AUTO = unchecked((int)0x0003);
public const int AL_EFFECTSLOT_NULL = unchecked((int)0x0000);
public const int AL_LOWPASS_GAIN = unchecked((int)0x0001);
public const int AL_LOWPASS_GAINHF = unchecked((int)0x0002);
public const int AL_HIGHPASS_GAIN = unchecked((int)0x0001);
public const int AL_HIGHPASS_GAINLF = unchecked((int)0x0002);
public const int AL_BANDPASS_GAIN = unchecked((int)0x0001);
public const int AL_BANDPASS_GAINLF = unchecked((int)0x0002);
public const int AL_BANDPASS_GAINHF = unchecked((int)0x0003);
public const int AL_FILTER_FIRST_PARAMETER = unchecked((int)0x0000);
public const int AL_FILTER_LAST_PARAMETER = unchecked((int)0x8000);
public const int AL_FILTER_TYPE = unchecked((int)0x8001);
public const int AL_FILTER_NULL = unchecked((int)0x0000);
public const int AL_FILTER_LOWPASS = unchecked((int)0x0001);
public const int AL_FILTER_HIGHPASS = unchecked((int)0x0002);
public const int AL_FILTER_BANDPASS = unchecked((int)0x0003);
public const float AL_LOWPASS_MIN_GAIN = 0.0f;
public const float AL_LOWPASS_MAX_GAIN = 1.0f;
public const float AL_LOWPASS_DEFAULT_GAIN = 1.0f;
public const float AL_LOWPASS_MIN_GAINHF = 0.0f;
public const float AL_LOWPASS_MAX_GAINHF = 1.0f;
public const float AL_LOWPASS_DEFAULT_GAINHF = 1.0f;
public const float AL_HIGHPASS_MIN_GAIN = 0.0f;
public const float AL_HIGHPASS_MAX_GAIN = 1.0f;
public const float AL_HIGHPASS_DEFAULT_GAIN = 1.0f;
public const float AL_HIGHPASS_MIN_GAINLF = 0.0f;
public const float AL_HIGHPASS_MAX_GAINLF = 1.0f;
public const float AL_HIGHPASS_DEFAULT_GAINLF = 1.0f;
public const float AL_BANDPASS_MIN_GAIN = 0.0f;
public const float AL_BANDPASS_MAX_GAIN = 1.0f;
public const float AL_BANDPASS_DEFAULT_GAIN = 1.0f;
public const float AL_BANDPASS_MIN_GAINHF = 0.0f;
public const float AL_BANDPASS_MAX_GAINHF = 1.0f;
public const float AL_BANDPASS_DEFAULT_GAINHF = 1.0f;
public const float AL_BANDPASS_MIN_GAINLF = 0.0f;
public const float AL_BANDPASS_MAX_GAINLF = 1.0f;
public const float AL_BANDPASS_DEFAULT_GAINLF = 1.0f;
public const float AL_REVERB_MIN_DENSITY = 0.0f;
public const float AL_REVERB_MAX_DENSITY = 1.0f;
public const float AL_REVERB_DEFAULT_DENSITY = 1.0f;
public const float AL_REVERB_MIN_DIFFUSION = 0.0f;
public const float AL_REVERB_MAX_DIFFUSION = 1.0f;
public const float AL_REVERB_DEFAULT_DIFFUSION = 1.0f;
public const float AL_REVERB_MIN_GAIN = 0.0f;
public const float AL_REVERB_MAX_GAIN = 1.0f;
public const float AL_REVERB_DEFAULT_GAIN = 0.32f;
public const float AL_REVERB_MIN_GAINHF = 0.0f;
public const float AL_REVERB_MAX_GAINHF = 1.0f;
public const float AL_REVERB_DEFAULT_GAINHF = 0.89f;
public const float AL_REVERB_MIN_DECAY_TIME = 0.1f;
public const float AL_REVERB_MAX_DECAY_TIME = 20.0f;
public const float AL_REVERB_DEFAULT_DECAY_TIME = 1.49f;
public const float AL_REVERB_MIN_DECAY_HFRATIO = 0.1f;
public const float AL_REVERB_MAX_DECAY_HFRATIO = 2.0f;
public const float AL_REVERB_DEFAULT_DECAY_HFRATIO = 0.83f;
public const float AL_REVERB_MIN_REFLECTIONS_GAIN = 0.0f;
public const float AL_REVERB_MAX_REFLECTIONS_GAIN = 3.16f;
public const float AL_REVERB_DEFAULT_REFLECTIONS_GAIN = 0.05f;
public const float AL_REVERB_MIN_REFLECTIONS_DELAY = 0.0f;
public const float AL_REVERB_MAX_REFLECTIONS_DELAY = 0.3f;
public const float AL_REVERB_DEFAULT_REFLECTIONS_DELAY = 0.007f;
public const float AL_REVERB_MIN_LATE_REVERB_GAIN = 0.0f;
public const float AL_REVERB_MAX_LATE_REVERB_GAIN = 10.0f;
public const float AL_REVERB_DEFAULT_LATE_REVERB_GAIN = 1.26f;
public const float AL_REVERB_MIN_LATE_REVERB_DELAY = 0.0f;
public const float AL_REVERB_MAX_LATE_REVERB_DELAY = 0.1f;
public const float AL_REVERB_DEFAULT_LATE_REVERB_DELAY = 0.011f;
public const float AL_REVERB_MIN_AIR_ABSORPTION_GAINHF = 0.892f;
public const float AL_REVERB_MAX_AIR_ABSORPTION_GAINHF = 1.0f;
public const float AL_REVERB_DEFAULT_AIR_ABSORPTION_GAINHF = 0.994f;
public const float AL_REVERB_MIN_ROOM_ROLLOFF_FACTOR = 0.0f;
public const float AL_REVERB_MAX_ROOM_ROLLOFF_FACTOR = 10.0f;
public const float AL_REVERB_DEFAULT_ROOM_ROLLOFF_FACTOR = 0.0f;
public const int AL_REVERB_MIN_DECAY_HFLIMIT = unchecked((int)AL_FALSE);
public const int AL_REVERB_MAX_DECAY_HFLIMIT = unchecked((int)AL_TRUE);
public const int AL_REVERB_DEFAULT_DECAY_HFLIMIT = unchecked((int)AL_TRUE);
public const float AL_EAXREVERB_MIN_DENSITY = 0.0f;
public const float AL_EAXREVERB_MAX_DENSITY = 1.0f;
public const float AL_EAXREVERB_DEFAULT_DENSITY = 1.0f;
public const float AL_EAXREVERB_MIN_DIFFUSION = 0.0f;
public const float AL_EAXREVERB_MAX_DIFFUSION = 1.0f;
public const float AL_EAXREVERB_DEFAULT_DIFFUSION = 1.0f;
public const float AL_EAXREVERB_MIN_GAIN = 0.0f;
public const float AL_EAXREVERB_MAX_GAIN = 1.0f;
public const float AL_EAXREVERB_DEFAULT_GAIN = 0.32f;
public const float AL_EAXREVERB_MIN_GAINHF = 0.0f;
public const float AL_EAXREVERB_MAX_GAINHF = 1.0f;
public const float AL_EAXREVERB_DEFAULT_GAINHF = 0.89f;
public const float AL_EAXREVERB_MIN_GAINLF = 0.0f;
public const float AL_EAXREVERB_MAX_GAINLF = 1.0f;
public const float AL_EAXREVERB_DEFAULT_GAINLF = 1.0f;
public const float AL_EAXREVERB_MIN_DECAY_TIME = 0.1f;
public const float AL_EAXREVERB_MAX_DECAY_TIME = 20.0f;
public const float AL_EAXREVERB_DEFAULT_DECAY_TIME = 1.49f;
public const float AL_EAXREVERB_MIN_DECAY_HFRATIO = 0.1f;
public const float AL_EAXREVERB_MAX_DECAY_HFRATIO = 2.0f;
public const float AL_EAXREVERB_DEFAULT_DECAY_HFRATIO = 0.83f;
public const float AL_EAXREVERB_MIN_DECAY_LFRATIO = 0.1f;
public const float AL_EAXREVERB_MAX_DECAY_LFRATIO = 2.0f;
public const float AL_EAXREVERB_DEFAULT_DECAY_LFRATIO = 1.0f;
public const float AL_EAXREVERB_MIN_REFLECTIONS_GAIN = 0.0f;
public const float AL_EAXREVERB_MAX_REFLECTIONS_GAIN = 3.16f;
public const float AL_EAXREVERB_DEFAULT_REFLECTIONS_GAIN = 0.05f;
public const float AL_EAXREVERB_MIN_REFLECTIONS_DELAY = 0.0f;
public const float AL_EAXREVERB_MAX_REFLECTIONS_DELAY = 0.3f;
public const float AL_EAXREVERB_DEFAULT_REFLECTIONS_DELAY = 0.007f;
public const float AL_EAXREVERB_DEFAULT_REFLECTIONS_PAN_XYZ = 0.0f;
public const float AL_EAXREVERB_MIN_LATE_REVERB_GAIN = 0.0f;
public const float AL_EAXREVERB_MAX_LATE_REVERB_GAIN = 10.0f;
public const float AL_EAXREVERB_DEFAULT_LATE_REVERB_GAIN = 1.26f;
public const float AL_EAXREVERB_MIN_LATE_REVERB_DELAY = 0.0f;
public const float AL_EAXREVERB_MAX_LATE_REVERB_DELAY = 0.1f;
public const float AL_EAXREVERB_DEFAULT_LATE_REVERB_DELAY = 0.011f;
public const float AL_EAXREVERB_DEFAULT_LATE_REVERB_PAN_XYZ = 0.0f;
public const float AL_EAXREVERB_MIN_ECHO_TIME = 0.075f;
public const float AL_EAXREVERB_MAX_ECHO_TIME = 0.25f;
public const float AL_EAXREVERB_DEFAULT_ECHO_TIME = 0.25f;
public const float AL_EAXREVERB_MIN_ECHO_DEPTH = 0.0f;
public const float AL_EAXREVERB_MAX_ECHO_DEPTH = 1.0f;
public const float AL_EAXREVERB_DEFAULT_ECHO_DEPTH = 0.0f;
public const float AL_EAXREVERB_MIN_MODULATION_TIME = 0.04f;
public const float AL_EAXREVERB_MAX_MODULATION_TIME = 4.0f;
public const float AL_EAXREVERB_DEFAULT_MODULATION_TIME = 0.25f;
public const float AL_EAXREVERB_MIN_MODULATION_DEPTH = 0.0f;
public const float AL_EAXREVERB_MAX_MODULATION_DEPTH = 1.0f;
public const float AL_EAXREVERB_DEFAULT_MODULATION_DEPTH = 0.0f;
public const float AL_EAXREVERB_MIN_AIR_ABSORPTION_GAINHF = 0.892f;
public const float AL_EAXREVERB_MAX_AIR_ABSORPTION_GAINHF = 1.0f;
public const float AL_EAXREVERB_DEFAULT_AIR_ABSORPTION_GAINHF = 0.994f;
public const float AL_EAXREVERB_MIN_HFREFERENCE = 1000.0f;
public const float AL_EAXREVERB_MAX_HFREFERENCE = 20000.0f;
public const float AL_EAXREVERB_DEFAULT_HFREFERENCE = 5000.0f;
public const float AL_EAXREVERB_MIN_LFREFERENCE = 20.0f;
public const float AL_EAXREVERB_MAX_LFREFERENCE = 1000.0f;
public const float AL_EAXREVERB_DEFAULT_LFREFERENCE = 250.0f;
public const float AL_EAXREVERB_MIN_ROOM_ROLLOFF_FACTOR = 0.0f;
public const float AL_EAXREVERB_MAX_ROOM_ROLLOFF_FACTOR = 10.0f;
public const float AL_EAXREVERB_DEFAULT_ROOM_ROLLOFF_FACTOR = 0.0f;
public const int AL_EAXREVERB_MIN_DECAY_HFLIMIT = unchecked((int)AL_FALSE);
public const int AL_EAXREVERB_MAX_DECAY_HFLIMIT = unchecked((int)AL_TRUE);
public const int AL_EAXREVERB_DEFAULT_DECAY_HFLIMIT = unchecked((int)AL_TRUE);
public const int AL_CHORUS_WAVEFORM_SINUSOID = unchecked((int)0);
public const int AL_CHORUS_WAVEFORM_TRIANGLE = unchecked((int)1);
public const int AL_CHORUS_MIN_WAVEFORM = unchecked((int)0);
public const int AL_CHORUS_MAX_WAVEFORM = unchecked((int)1);
public const int AL_CHORUS_DEFAULT_WAVEFORM = unchecked((int)1);
public const int AL_CHORUS_MIN_PHASE = unchecked((int)-180);
public const int AL_CHORUS_MAX_PHASE = unchecked((int)180);
public const int AL_CHORUS_DEFAULT_PHASE = unchecked((int)90);
public const float AL_CHORUS_MIN_RATE = 0.0f;
public const float AL_CHORUS_MAX_RATE = 10.0f;
public const float AL_CHORUS_DEFAULT_RATE = 1.1f;
public const float AL_CHORUS_MIN_DEPTH = 0.0f;
public const float AL_CHORUS_MAX_DEPTH = 1.0f;
public const float AL_CHORUS_DEFAULT_DEPTH = 0.1f;
public const float AL_CHORUS_MIN_FEEDBACK = -1.0f;
public const float AL_CHORUS_MAX_FEEDBACK = 1.0f;
public const float AL_CHORUS_DEFAULT_FEEDBACK = 0.25f;
public const float AL_CHORUS_MIN_DELAY = 0.0f;
public const float AL_CHORUS_MAX_DELAY = 0.016f;
public const float AL_CHORUS_DEFAULT_DELAY = 0.016f;
public const float AL_DISTORTION_MIN_EDGE = 0.0f;
public const float AL_DISTORTION_MAX_EDGE = 1.0f;
public const float AL_DISTORTION_DEFAULT_EDGE = 0.2f;
public const float AL_DISTORTION_MIN_GAIN = 0.01f;
public const float AL_DISTORTION_MAX_GAIN = 1.0f;
public const float AL_DISTORTION_DEFAULT_GAIN = 0.05f;
public const float AL_DISTORTION_MIN_LOWPASS_CUTOFF = 80.0f;
public const float AL_DISTORTION_MAX_LOWPASS_CUTOFF = 24000.0f;
public const float AL_DISTORTION_DEFAULT_LOWPASS_CUTOFF = 8000.0f;
public const float AL_DISTORTION_MIN_EQCENTER = 80.0f;
public const float AL_DISTORTION_MAX_EQCENTER = 24000.0f;
public const float AL_DISTORTION_DEFAULT_EQCENTER = 3600.0f;
public const float AL_DISTORTION_MIN_EQBANDWIDTH = 80.0f;
public const float AL_DISTORTION_MAX_EQBANDWIDTH = 24000.0f;
public const float AL_DISTORTION_DEFAULT_EQBANDWIDTH = 3600.0f;
public const float AL_ECHO_MIN_DELAY = 0.0f;
public const float AL_ECHO_MAX_DELAY = 0.207f;
public const float AL_ECHO_DEFAULT_DELAY = 0.1f;
public const float AL_ECHO_MIN_LRDELAY = 0.0f;
public const float AL_ECHO_MAX_LRDELAY = 0.404f;
public const float AL_ECHO_DEFAULT_LRDELAY = 0.1f;
public const float AL_ECHO_MIN_DAMPING = 0.0f;
public const float AL_ECHO_MAX_DAMPING = 0.99f;
public const float AL_ECHO_DEFAULT_DAMPING = 0.5f;
public const float AL_ECHO_MIN_FEEDBACK = 0.0f;
public const float AL_ECHO_MAX_FEEDBACK = 1.0f;
public const float AL_ECHO_DEFAULT_FEEDBACK = 0.5f;
public const float AL_ECHO_MIN_SPREAD = -1.0f;
public const float AL_ECHO_MAX_SPREAD = 1.0f;
public const float AL_ECHO_DEFAULT_SPREAD = -1.0f;
public const int AL_FLANGER_WAVEFORM_SINUSOID = unchecked((int)0);
public const int AL_FLANGER_WAVEFORM_TRIANGLE = unchecked((int)1);
public const int AL_FLANGER_MIN_WAVEFORM = unchecked((int)0);
public const int AL_FLANGER_MAX_WAVEFORM = unchecked((int)1);
public const int AL_FLANGER_DEFAULT_WAVEFORM = unchecked((int)1);
public const int AL_FLANGER_MIN_PHASE = unchecked((int)-180);
public const int AL_FLANGER_MAX_PHASE = unchecked((int)180);
public const int AL_FLANGER_DEFAULT_PHASE = unchecked((int)0);
public const float AL_FLANGER_MIN_RATE = 0.0f;
public const float AL_FLANGER_MAX_RATE = 10.0f;
public const float AL_FLANGER_DEFAULT_RATE = 0.27f;
public const float AL_FLANGER_MIN_DEPTH = 0.0f;
public const float AL_FLANGER_MAX_DEPTH = 1.0f;
public const float AL_FLANGER_DEFAULT_DEPTH = 1.0f;
public const float AL_FLANGER_MIN_FEEDBACK = -1.0f;
public const float AL_FLANGER_MAX_FEEDBACK = 1.0f;
public const float AL_FLANGER_DEFAULT_FEEDBACK = -0.5f;
public const float AL_FLANGER_MIN_DELAY = 0.0f;
public const float AL_FLANGER_MAX_DELAY = 0.004f;
public const float AL_FLANGER_DEFAULT_DELAY = 0.002f;
public const float AL_FREQUENCY_SHIFTER_MIN_FREQUENCY = 0.0f;
public const float AL_FREQUENCY_SHIFTER_MAX_FREQUENCY = 24000.0f;
public const float AL_FREQUENCY_SHIFTER_DEFAULT_FREQUENCY = 0.0f;
public const int AL_FREQUENCY_SHIFTER_MIN_LEFT_DIRECTION = unchecked((int)0);
public const int AL_FREQUENCY_SHIFTER_MAX_LEFT_DIRECTION = unchecked((int)2);
public const int AL_FREQUENCY_SHIFTER_DEFAULT_LEFT_DIRECTION = unchecked((int)0);
public const int AL_FREQUENCY_SHIFTER_DIRECTION_DOWN = unchecked((int)0);
public const int AL_FREQUENCY_SHIFTER_DIRECTION_UP = unchecked((int)1);
public const int AL_FREQUENCY_SHIFTER_DIRECTION_OFF = unchecked((int)2);
public const int AL_FREQUENCY_SHIFTER_MIN_RIGHT_DIRECTION = unchecked((int)0);
public const int AL_FREQUENCY_SHIFTER_MAX_RIGHT_DIRECTION = unchecked((int)2);
public const int AL_FREQUENCY_SHIFTER_DEFAULT_RIGHT_DIRECTION = unchecked((int)0);
public const int AL_VOCAL_MORPHER_MIN_PHONEMEA = unchecked((int)0);
public const int AL_VOCAL_MORPHER_MAX_PHONEMEA = unchecked((int)29);
public const int AL_VOCAL_MORPHER_DEFAULT_PHONEMEA = unchecked((int)0);
public const int AL_VOCAL_MORPHER_MIN_PHONEMEA_COARSE_TUNING = unchecked((int)-24);
public const int AL_VOCAL_MORPHER_MAX_PHONEMEA_COARSE_TUNING = unchecked((int)24);
public const int AL_VOCAL_MORPHER_DEFAULT_PHONEMEA_COARSE_TUNING = unchecked((int)0);
public const int AL_VOCAL_MORPHER_MIN_PHONEMEB = unchecked((int)0);
public const int AL_VOCAL_MORPHER_MAX_PHONEMEB = unchecked((int)29);
public const int AL_VOCAL_MORPHER_DEFAULT_PHONEMEB = unchecked((int)10);
public const int AL_VOCAL_MORPHER_MIN_PHONEMEB_COARSE_TUNING = unchecked((int)-24);
public const int AL_VOCAL_MORPHER_MAX_PHONEMEB_COARSE_TUNING = unchecked((int)24);
public const int AL_VOCAL_MORPHER_DEFAULT_PHONEMEB_COARSE_TUNING = unchecked((int)0);
public const int AL_VOCAL_MORPHER_PHONEME_A = unchecked((int)0);
public const int AL_VOCAL_MORPHER_PHONEME_E = unchecked((int)1);
public const int AL_VOCAL_MORPHER_PHONEME_I = unchecked((int)2);
public const int AL_VOCAL_MORPHER_PHONEME_O = unchecked((int)3);
public const int AL_VOCAL_MORPHER_PHONEME_U = unchecked((int)4);
public const int AL_VOCAL_MORPHER_PHONEME_AA = unchecked((int)5);
public const int AL_VOCAL_MORPHER_PHONEME_AE = unchecked((int)6);
public const int AL_VOCAL_MORPHER_PHONEME_AH = unchecked((int)7);
public const int AL_VOCAL_MORPHER_PHONEME_AO = unchecked((int)8);
public const int AL_VOCAL_MORPHER_PHONEME_EH = unchecked((int)9);
public const int AL_VOCAL_MORPHER_PHONEME_ER = unchecked((int)10);
public const int AL_VOCAL_MORPHER_PHONEME_IH = unchecked((int)11);
public const int AL_VOCAL_MORPHER_PHONEME_IY = unchecked((int)12);
public const int AL_VOCAL_MORPHER_PHONEME_UH = unchecked((int)13);
public const int AL_VOCAL_MORPHER_PHONEME_UW = unchecked((int)14);
public const int AL_VOCAL_MORPHER_PHONEME_B = unchecked((int)15);
public const int AL_VOCAL_MORPHER_PHONEME_D = unchecked((int)16);
public const int AL_VOCAL_MORPHER_PHONEME_F = unchecked((int)17);
public const int AL_VOCAL_MORPHER_PHONEME_G = unchecked((int)18);
public const int AL_VOCAL_MORPHER_PHONEME_J = unchecked((int)19);
public const int AL_VOCAL_MORPHER_PHONEME_K = unchecked((int)20);
public const int AL_VOCAL_MORPHER_PHONEME_L = unchecked((int)21);
public const int AL_VOCAL_MORPHER_PHONEME_M = unchecked((int)22);
public const int AL_VOCAL_MORPHER_PHONEME_N = unchecked((int)23);
public const int AL_VOCAL_MORPHER_PHONEME_P = unchecked((int)24);
public const int AL_VOCAL_MORPHER_PHONEME_R = unchecked((int)25);
public const int AL_VOCAL_MORPHER_PHONEME_S = unchecked((int)26);
public const int AL_VOCAL_MORPHER_PHONEME_T = unchecked((int)27);
public const int AL_VOCAL_MORPHER_PHONEME_V = unchecked((int)28);
public const int AL_VOCAL_MORPHER_PHONEME_Z = unchecked((int)29);
public const int AL_VOCAL_MORPHER_WAVEFORM_SINUSOID = unchecked((int)0);
public const int AL_VOCAL_MORPHER_WAVEFORM_TRIANGLE = unchecked((int)1);
public const int AL_VOCAL_MORPHER_WAVEFORM_SAWTOOTH = unchecked((int)2);
public const int AL_VOCAL_MORPHER_MIN_WAVEFORM = unchecked((int)0);
public const int AL_VOCAL_MORPHER_MAX_WAVEFORM = unchecked((int)2);
public const int AL_VOCAL_MORPHER_DEFAULT_WAVEFORM = unchecked((int)0);
public const float AL_VOCAL_MORPHER_MIN_RATE = 0.0f;
public const float AL_VOCAL_MORPHER_MAX_RATE = 10.0f;
public const float AL_VOCAL_MORPHER_DEFAULT_RATE = 1.41f;
public const int AL_PITCH_SHIFTER_MIN_COARSE_TUNE = unchecked((int)-12);
public const int AL_PITCH_SHIFTER_MAX_COARSE_TUNE = unchecked((int)12);
public const int AL_PITCH_SHIFTER_DEFAULT_COARSE_TUNE = unchecked((int)12);
public const int AL_PITCH_SHIFTER_MIN_FINE_TUNE = unchecked((int)-50);
public const int AL_PITCH_SHIFTER_MAX_FINE_TUNE = unchecked((int)50);
public const int AL_PITCH_SHIFTER_DEFAULT_FINE_TUNE = unchecked((int)0);
public const float AL_RING_MODULATOR_MIN_FREQUENCY = 0.0f;
public const float AL_RING_MODULATOR_MAX_FREQUENCY = 8000.0f;
public const float AL_RING_MODULATOR_DEFAULT_FREQUENCY = 440.0f;
public const float AL_RING_MODULATOR_MIN_HIGHPASS_CUTOFF = 0.0f;
public const float AL_RING_MODULATOR_MAX_HIGHPASS_CUTOFF = 24000.0f;
public const float AL_RING_MODULATOR_DEFAULT_HIGHPASS_CUTOFF = 800.0f;
public const int AL_RING_MODULATOR_SINUSOID = unchecked((int)0);
public const int AL_RING_MODULATOR_SAWTOOTH = unchecked((int)1);
public const int AL_RING_MODULATOR_SQUARE = unchecked((int)2);
public const int AL_RING_MODULATOR_MIN_WAVEFORM = unchecked((int)0);
public const int AL_RING_MODULATOR_MAX_WAVEFORM = unchecked((int)2);
public const int AL_RING_MODULATOR_DEFAULT_WAVEFORM = unchecked((int)0);
public const float AL_AUTOWAH_MIN_ATTACK_TIME = 0.0001f;
public const float AL_AUTOWAH_MAX_ATTACK_TIME = 1.0f;
public const float AL_AUTOWAH_DEFAULT_ATTACK_TIME = 0.06f;
public const float AL_AUTOWAH_MIN_RELEASE_TIME = 0.0001f;
public const float AL_AUTOWAH_MAX_RELEASE_TIME = 1.0f;
public const float AL_AUTOWAH_DEFAULT_RELEASE_TIME = 0.06f;
public const float AL_AUTOWAH_MIN_RESONANCE = 2.0f;
public const float AL_AUTOWAH_MAX_RESONANCE = 1000.0f;
public const float AL_AUTOWAH_DEFAULT_RESONANCE = 1000.0f;
public const float AL_AUTOWAH_MIN_PEAK_GAIN = 0.00003f;
public const float AL_AUTOWAH_MAX_PEAK_GAIN = 31621.0f;
public const float AL_AUTOWAH_DEFAULT_PEAK_GAIN = 11.22f;
public const int AL_COMPRESSOR_MIN_ONOFF = unchecked((int)0);
public const int AL_COMPRESSOR_MAX_ONOFF = unchecked((int)1);
public const int AL_COMPRESSOR_DEFAULT_ONOFF = unchecked((int)1);
public const float AL_EQUALIZER_MIN_LOW_GAIN = 0.126f;
public const float AL_EQUALIZER_MAX_LOW_GAIN = 7.943f;
public const float AL_EQUALIZER_DEFAULT_LOW_GAIN = 1.0f;
public const float AL_EQUALIZER_MIN_LOW_CUTOFF = 50.0f;
public const float AL_EQUALIZER_MAX_LOW_CUTOFF = 800.0f;
public const float AL_EQUALIZER_DEFAULT_LOW_CUTOFF = 200.0f;
public const float AL_EQUALIZER_MIN_MID1_GAIN = 0.126f;
public const float AL_EQUALIZER_MAX_MID1_GAIN = 7.943f;
public const float AL_EQUALIZER_DEFAULT_MID1_GAIN = 1.0f;
public const float AL_EQUALIZER_MIN_MID1_CENTER = 200.0f;
public const float AL_EQUALIZER_MAX_MID1_CENTER = 3000.0f;
public const float AL_EQUALIZER_DEFAULT_MID1_CENTER = 500.0f;
public const float AL_EQUALIZER_MIN_MID1_WIDTH = 0.01f;
public const float AL_EQUALIZER_MAX_MID1_WIDTH = 1.0f;
public const float AL_EQUALIZER_DEFAULT_MID1_WIDTH = 1.0f;
public const float AL_EQUALIZER_MIN_MID2_GAIN = 0.126f;
public const float AL_EQUALIZER_MAX_MID2_GAIN = 7.943f;
public const float AL_EQUALIZER_DEFAULT_MID2_GAIN = 1.0f;
public const float AL_EQUALIZER_MIN_MID2_CENTER = 1000.0f;
public const float AL_EQUALIZER_MAX_MID2_CENTER = 8000.0f;
public const float AL_EQUALIZER_DEFAULT_MID2_CENTER = 3000.0f;
public const float AL_EQUALIZER_MIN_MID2_WIDTH = 0.01f;
public const float AL_EQUALIZER_MAX_MID2_WIDTH = 1.0f;
public const float AL_EQUALIZER_DEFAULT_MID2_WIDTH = 1.0f;
public const float AL_EQUALIZER_MIN_HIGH_GAIN = 0.126f;
public const float AL_EQUALIZER_MAX_HIGH_GAIN = 7.943f;
public const float AL_EQUALIZER_DEFAULT_HIGH_GAIN = 1.0f;
public const float AL_EQUALIZER_MIN_HIGH_CUTOFF = 4000.0f;
public const float AL_EQUALIZER_MAX_HIGH_CUTOFF = 16000.0f;
public const float AL_EQUALIZER_DEFAULT_HIGH_CUTOFF = 6000.0f;
public const float AL_MIN_AIR_ABSORPTION_FACTOR = 0.0f;
public const float AL_MAX_AIR_ABSORPTION_FACTOR = 10.0f;
public const float AL_DEFAULT_AIR_ABSORPTION_FACTOR = 0.0f;
public const float AL_MIN_ROOM_ROLLOFF_FACTOR = 0.0f;
public const float AL_MAX_ROOM_ROLLOFF_FACTOR = 10.0f;
public const float AL_DEFAULT_ROOM_ROLLOFF_FACTOR = 0.0f;
public const float AL_MIN_CONE_OUTER_GAINHF = 0.0f;
public const float AL_MAX_CONE_OUTER_GAINHF = 1.0f;
public const float AL_DEFAULT_CONE_OUTER_GAINHF = 1.0f;
public const int AL_MIN_DIRECT_FILTER_GAINHF_AUTO = unchecked((int)AL_FALSE);
public const int AL_MAX_DIRECT_FILTER_GAINHF_AUTO = unchecked((int)AL_TRUE);
public const int AL_DEFAULT_DIRECT_FILTER_GAINHF_AUTO = unchecked((int)AL_TRUE);
public const int AL_MIN_AUXILIARY_SEND_FILTER_GAIN_AUTO = unchecked((int)AL_FALSE);
public const int AL_MAX_AUXILIARY_SEND_FILTER_GAIN_AUTO = unchecked((int)AL_TRUE);
public const int AL_DEFAULT_AUXILIARY_SEND_FILTER_GAIN_AUTO = unchecked((int)AL_TRUE);
public const int AL_MIN_AUXILIARY_SEND_FILTER_GAINHF_AUTO = unchecked((int)AL_FALSE);
public const int AL_MAX_AUXILIARY_SEND_FILTER_GAINHF_AUTO = unchecked((int)AL_TRUE);
public const int AL_DEFAULT_AUXILIARY_SEND_FILTER_GAINHF_AUTO = unchecked((int)AL_TRUE);
public const float AL_DEFAULT_METERS_PER_UNIT = 1.0f;
public const int AL_FORMAT_QUAD8_LOKI = unchecked((int)0x10004);
public const int AL_FORMAT_QUAD16_LOKI = unchecked((int)0x10005);
public const int AL_FORMAT_MONO_FLOAT32 = unchecked((int)0x10010);
public const int AL_FORMAT_STEREO_FLOAT32 = unchecked((int)0x10011);
public const int AL_FORMAT_MONO_DOUBLE_EXT = unchecked((int)0x10012);
public const int AL_FORMAT_STEREO_DOUBLE_EXT = unchecked((int)0x10013);
public const int AL_FORMAT_MONO_MULAW_EXT = unchecked((int)0x10014);
public const int AL_FORMAT_STEREO_MULAW_EXT = unchecked((int)0x10015);
public const int AL_FORMAT_MONO_ALAW_EXT = unchecked((int)0x10016);
public const int AL_FORMAT_STEREO_ALAW_EXT = unchecked((int)0x10017);
public const int AL_FORMAT_QUAD8 = unchecked((int)0x1204);
public const int AL_FORMAT_QUAD16 = unchecked((int)0x1205);
public const int AL_FORMAT_QUAD32 = unchecked((int)0x1206);
public const int AL_FORMAT_REAR8 = unchecked((int)0x1207);
public const int AL_FORMAT_REAR16 = unchecked((int)0x1208);
public const int AL_FORMAT_REAR32 = unchecked((int)0x1209);
public const int AL_FORMAT_51CHN8 = unchecked((int)0x120A);
public const int AL_FORMAT_51CHN16 = unchecked((int)0x120B);
public const int AL_FORMAT_51CHN32 = unchecked((int)0x120C);
public const int AL_FORMAT_61CHN8 = unchecked((int)0x120D);
public const int AL_FORMAT_61CHN16 = unchecked((int)0x120E);
public const int AL_FORMAT_61CHN32 = unchecked((int)0x120F);
public const int AL_FORMAT_71CHN8 = unchecked((int)0x1210);
public const int AL_FORMAT_71CHN16 = unchecked((int)0x1211);
public const int AL_FORMAT_71CHN32 = unchecked((int)0x1212);
public const int AL_FORMAT_MONO_MULAW = unchecked((int)0x10014);
public const int AL_FORMAT_STEREO_MULAW = unchecked((int)0x10015);
public const int AL_FORMAT_QUAD_MULAW = unchecked((int)0x10021);
public const int AL_FORMAT_REAR_MULAW = unchecked((int)0x10022);
public const int AL_FORMAT_51CHN_MULAW = unchecked((int)0x10023);
public const int AL_FORMAT_61CHN_MULAW = unchecked((int)0x10024);
public const int AL_FORMAT_71CHN_MULAW = unchecked((int)0x10025);
public const int AL_FORMAT_MONO_IMA4 = unchecked((int)0x1300);
public const int AL_FORMAT_STEREO_IMA4 = unchecked((int)0x1301);
public const int AL_SOURCE_DISTANCE_MODEL = unchecked((int)0x200);
public const int AL_LOOP_POINTS_SOFT = unchecked((int)0x2015);
public const int AL_DEDICATED_GAIN = unchecked((int)0x0001);
public const int AL_EFFECT_DEDICATED_DIALOGUE = unchecked((int)0x9001);
public const int AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT = unchecked((int)0x9000);
public const int AL_BYTE_LENGTH_SOFT = unchecked((int)0x2009);
public const int AL_SAMPLE_LENGTH_SOFT = unchecked((int)0x200A);
public const int AL_SEC_LENGTH_SOFT = unchecked((int)0x200B);
public const int AL_DIRECT_CHANNELS_SOFT = unchecked((int)0x1033);
public const int AL_STEREO_ANGLES = unchecked((int)0x1030);
public const int AL_SOURCE_RADIUS = unchecked((int)0x1031);
public const int AL_SAMPLE_OFFSET_LATENCY_SOFT = unchecked((int)0x1200);
public const int AL_SEC_OFFSET_LATENCY_SOFT = unchecked((int)0x1201);
public const int AL_DEFERRED_UPDATES_SOFT = unchecked((int)0xC002);
public const int AL_UNPACK_BLOCK_ALIGNMENT_SOFT = unchecked((int)0x200C);
public const int AL_PACK_BLOCK_ALIGNMENT_SOFT = unchecked((int)0x200D);
public const int AL_FORMAT_MONO_MSADPCM_SOFT = unchecked((int)0x1302);
public const int AL_FORMAT_STEREO_MSADPCM_SOFT = unchecked((int)0x1303);
public const int AL_FORMAT_BFORMAT2D_8 = unchecked((int)0x20021);
public const int AL_FORMAT_BFORMAT2D_16 = unchecked((int)0x20022);
public const int AL_FORMAT_BFORMAT2D_FLOAT32 = unchecked((int)0x20023);
public const int AL_FORMAT_BFORMAT3D_8 = unchecked((int)0x20031);
public const int AL_FORMAT_BFORMAT3D_16 = unchecked((int)0x20032);
public const int AL_FORMAT_BFORMAT3D_FLOAT32 = unchecked((int)0x20033);
public const int AL_FORMAT_BFORMAT2D_MULAW = unchecked((int)0x10031);
public const int AL_FORMAT_BFORMAT3D_MULAW = unchecked((int)0x10032);
public const int AL_GAIN_LIMIT_SOFT = unchecked((int)0x200E);
public const int AL_NUM_RESAMPLERS_SOFT = unchecked((int)0x1210);
public const int AL_DEFAULT_RESAMPLER_SOFT = unchecked((int)0x1211);
public const int AL_SOURCE_RESAMPLER_SOFT = unchecked((int)0x1212);
public const int AL_RESAMPLER_NAME_SOFT = unchecked((int)0x1213);
public const int AL_SOURCE_SPATIALIZE_SOFT = unchecked((int)0x1214);
public const int AL_AUTO_SOFT = unchecked((int)0x0002);
public const int AL_SAMPLE_OFFSET_CLOCK_SOFT = unchecked((int)0x1202);
public const int AL_SEC_OFFSET_CLOCK_SOFT = unchecked((int)0x1203);
public const int AL_DROP_UNMATCHED_SOFT = unchecked((int)0x0001);
public const int AL_REMIX_UNMATCHED_SOFT = unchecked((int)0x0002);
public const int AL_AMBISONIC_LAYOUT_SOFT = unchecked((int)0x1997);
public const int AL_AMBISONIC_SCALING_SOFT = unchecked((int)0x1998);
public const int AL_FUMA_SOFT = unchecked((int)0x0000);
public const int AL_ACN_SOFT = unchecked((int)0x0001);
public const int AL_SN3D_SOFT = unchecked((int)0x0001);
public const int AL_N3D_SOFT = unchecked((int)0x0002);
public const int AL_EFFECTSLOT_TARGET_SOFT = unchecked((int)0x199C);
public const int AL_EVENT_CALLBACK_FUNCTION_SOFT = unchecked((int)0x19A2);
public const int AL_EVENT_CALLBACK_USER_PARAM_SOFT = unchecked((int)0x19A3);
public const int AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT = unchecked((int)0x19A4);
public const int AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT = unchecked((int)0x19A5);
public const int AL_EVENT_TYPE_DISCONNECTED_SOFT = unchecked((int)0x19A6);
public const int AL_BUFFER_CALLBACK_FUNCTION_SOFT = unchecked((int)0x19A0);
public const int AL_BUFFER_CALLBACK_USER_PARAM_SOFT = unchecked((int)0x19A1);
public const int AL_FORMAT_UHJ2CHN8_SOFT = unchecked((int)0x19A2);
public const int AL_FORMAT_UHJ2CHN16_SOFT = unchecked((int)0x19A3);
public const int AL_FORMAT_UHJ2CHN_FLOAT32_SOFT = unchecked((int)0x19A4);
public const int AL_FORMAT_UHJ3CHN8_SOFT = unchecked((int)0x19A5);
public const int AL_FORMAT_UHJ3CHN16_SOFT = unchecked((int)0x19A6);
public const int AL_FORMAT_UHJ3CHN_FLOAT32_SOFT = unchecked((int)0x19A7);
public const int AL_FORMAT_UHJ4CHN8_SOFT = unchecked((int)0x19A8);
public const int AL_FORMAT_UHJ4CHN16_SOFT = unchecked((int)0x19A9);
public const int AL_FORMAT_UHJ4CHN_FLOAT32_SOFT = unchecked((int)0x19AA);
public const int AL_STEREO_MODE_SOFT = unchecked((int)0x19B0);
public const int AL_NORMAL_SOFT = unchecked((int)0x0000);
public const int AL_SUPER_STEREO_SOFT = unchecked((int)0x0001);
public const int AL_SUPER_STEREO_WIDTH_SOFT = unchecked((int)0x19B1);
public const int AL_FORMAT_UHJ2CHN_MULAW_SOFT = unchecked((int)0x19B3);
public const int AL_FORMAT_UHJ2CHN_ALAW_SOFT = unchecked((int)0x19B4);
public const int AL_FORMAT_UHJ2CHN_IMA4_SOFT = unchecked((int)0x19B5);
public const int AL_FORMAT_UHJ2CHN_MSADPCM_SOFT = unchecked((int)0x19B6);
public const int AL_FORMAT_UHJ3CHN_MULAW_SOFT = unchecked((int)0x19B7);
public const int AL_FORMAT_UHJ3CHN_ALAW_SOFT = unchecked((int)0x19B8);
public const int AL_FORMAT_UHJ4CHN_MULAW_SOFT = unchecked((int)0x19B9);
public const int AL_FORMAT_UHJ4CHN_ALAW_SOFT = unchecked((int)0x19BA);
public const int AL_DONT_CARE_EXT = unchecked((int)0x0002);
public const int AL_DEBUG_OUTPUT_EXT = unchecked((int)0x19B2);
public const int AL_DEBUG_CALLBACK_FUNCTION_EXT = unchecked((int)0x19B3);
public const int AL_DEBUG_CALLBACK_USER_PARAM_EXT = unchecked((int)0x19B4);
public const int AL_DEBUG_SOURCE_API_EXT = unchecked((int)0x19B5);
public const int AL_DEBUG_SOURCE_AUDIO_SYSTEM_EXT = unchecked((int)0x19B6);
public const int AL_DEBUG_SOURCE_THIRD_PARTY_EXT = unchecked((int)0x19B7);
public const int AL_DEBUG_SOURCE_APPLICATION_EXT = unchecked((int)0x19B8);
public const int AL_DEBUG_SOURCE_OTHER_EXT = unchecked((int)0x19B9);
public const int AL_DEBUG_TYPE_ERROR_EXT = unchecked((int)0x19BA);
public const int AL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_EXT = unchecked((int)0x19BB);
public const int AL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_EXT = unchecked((int)0x19BC);
public const int AL_DEBUG_TYPE_PORTABILITY_EXT = unchecked((int)0x19BD);
public const int AL_DEBUG_TYPE_PERFORMANCE_EXT = unchecked((int)0x19BE);
public const int AL_DEBUG_TYPE_MARKER_EXT = unchecked((int)0x19BF);
public const int AL_DEBUG_TYPE_PUSH_GROUP_EXT = unchecked((int)0x19C0);
public const int AL_DEBUG_TYPE_POP_GROUP_EXT = unchecked((int)0x19C1);
public const int AL_DEBUG_TYPE_OTHER_EXT = unchecked((int)0x19C2);
public const int AL_DEBUG_SEVERITY_HIGH_EXT = unchecked((int)0x19C3);
public const int AL_DEBUG_SEVERITY_MEDIUM_EXT = unchecked((int)0x19C4);
public const int AL_DEBUG_SEVERITY_LOW_EXT = unchecked((int)0x19C5);
public const int AL_DEBUG_SEVERITY_NOTIFICATION_EXT = unchecked((int)0x19C6);
public const int AL_DEBUG_LOGGED_MESSAGES_EXT = unchecked((int)0x19C7);
public const int AL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_EXT = unchecked((int)0x19C8);
public const int AL_MAX_DEBUG_MESSAGE_LENGTH_EXT = unchecked((int)0x19C9);
public const int AL_MAX_DEBUG_LOGGED_MESSAGES_EXT = unchecked((int)0x19CA);
public const int AL_MAX_DEBUG_GROUP_STACK_DEPTH_EXT = unchecked((int)0x19CB);
public const int AL_MAX_LABEL_LENGTH_EXT = unchecked((int)0x19CC);
public const int AL_STACK_OVERFLOW_EXT = unchecked((int)0x19CD);
public const int AL_STACK_UNDERFLOW_EXT = unchecked((int)0x19CE);
public const int AL_CONTEXT_FLAGS_EXT = unchecked((int)0x19CF);
public const int AL_BUFFER_EXT = unchecked((int)0x1009);
public const int AL_SOURCE_EXT = unchecked((int)0x19D0);
public const int AL_FILTER_EXT = unchecked((int)0x19D1);
public const int AL_EFFECT_EXT = unchecked((int)0x19D2);
public const int AL_AUXILIARY_EFFECT_SLOT_EXT = unchecked((int)0x19D3);
public const int AL_UNPACK_AMBISONIC_ORDER_SOFT = unchecked((int)0x199D);
}
}
}

View file

@ -0,0 +1,745 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
using unsafe BufferCallbackSOFTFn = delegate* unmanaged[Cdecl]<uint, int, int, void*, void*, void>;
using unsafe BufferDataStaticFn = delegate* unmanaged[Cdecl]<uint, int, void*, int, int, void>;
using unsafe DebugMessageCallbackEXTFn = delegate* unmanaged[Cdecl]<void*, void*, void>;
using unsafe DebugMessageControlEXTFn = delegate* unmanaged[Cdecl]<int, int, int, int, uint*, Bool8, void>;
using unsafe DebugMessageInsertEXTFn = delegate* unmanaged[Cdecl]<int, int, uint, int, int, byte*, void>;
using unsafe DeferUpdatesSOFTFn = delegate* unmanaged[Cdecl]<void>;
using unsafe EventCallbackSOFTFn = delegate* unmanaged[Cdecl]<void*, void*, void>;
using unsafe EventControlSOFTFn = delegate* unmanaged[Cdecl]<int, int*, Bool8, void>;
using unsafe GetBuffer3PtrSOFTFn = delegate* unmanaged[Cdecl]<uint, int, void**, void**, void**, void>;
using unsafe GetBufferPtrSOFTFn = delegate* unmanaged[Cdecl]<uint, int, void**, void>;
using unsafe GetBufferPtrvSOFTFn = delegate* unmanaged[Cdecl]<uint, int, void**, void>;
using unsafe GetDebugMessageLogEXTFn = delegate* unmanaged[Cdecl]<
uint,
int,
int*,
int*,
uint*,
int*,
int*,
byte*,
uint>;
using unsafe GetObjectLabelEXTFn = delegate* unmanaged[Cdecl]<int, uint, int, int*, byte*, void>;
using unsafe GetPointerEXTFn = delegate* unmanaged[Cdecl]<int, void*>;
using unsafe GetPointerSOFTFn = delegate* unmanaged[Cdecl]<int, void*>;
using unsafe GetPointervEXTFn = delegate* unmanaged[Cdecl]<int, void**, void>;
using unsafe GetPointervSOFTFn = delegate* unmanaged[Cdecl]<int, void**, void>;
using unsafe GetSource3dSOFTFn = delegate* unmanaged[Cdecl]<uint, int, double*, double*, double*, void>;
using unsafe GetSource3i64SOFTFn = delegate* unmanaged[Cdecl]<uint, int, long*, long*, long*, void>;
using unsafe GetSourcedSOFTFn = delegate* unmanaged[Cdecl]<uint, int, double*, void>;
using unsafe GetSourcedvSOFTFn = delegate* unmanaged[Cdecl]<uint, int, double*, void>;
using unsafe GetSourcei64SOFTFn = delegate* unmanaged[Cdecl]<uint, int, long*, void>;
using unsafe GetSourcei64vSOFTFn = delegate* unmanaged[Cdecl]<uint, int, long*, void>;
using unsafe GetStringiSOFTFn = delegate* unmanaged[Cdecl]<int, int, byte*>;
using unsafe ObjectLabelEXTFn = delegate* unmanaged[Cdecl]<int, uint, int, byte*, void>;
using unsafe PopDebugGroupEXTFn = delegate* unmanaged[Cdecl]<void>;
using unsafe ProcessUpdatesSOFTFn = delegate* unmanaged[Cdecl]<void>;
using unsafe PushDebugGroupEXTFn = delegate* unmanaged[Cdecl]<int, uint, int, byte*, void>;
using unsafe Source3dSOFTFn = delegate* unmanaged[Cdecl]<uint, int, double, double, double, void>;
using unsafe Source3i64SOFTFn = delegate* unmanaged[Cdecl]<uint, int, long, long, long, void>;
using unsafe SourcedSOFTFn = delegate* unmanaged[Cdecl]<uint, int, double, void>;
using unsafe SourcedvSOFTFn = delegate* unmanaged[Cdecl]<uint, int, double*, void>;
using unsafe Sourcei64SOFTFn = delegate* unmanaged[Cdecl]<uint, int, long, void>;
using unsafe Sourcei64vSOFTFn = delegate* unmanaged[Cdecl]<uint, int, long*, void>;
using unsafe SourcePlayAtTimeSOFTFn = delegate* unmanaged[Cdecl]<uint, long, void>;
using unsafe SourcePlayAtTimevSOFTFn = delegate* unmanaged[Cdecl]<int, uint*, long, void>;
public static unsafe partial class Al
{
/// <summary>
/// Cached unmanaged function pointers for the in-scope alext.h entry points, each resolved once via <c>alcGetProcAddress</c> against the null device. A null field means the loaded binary does not export that symbol; the paired <see cref="PInvoke"/> method throws instead of dereferencing it.
/// </summary>
internal static unsafe class ExtPointers
{
internal static readonly BufferDataStaticFn alBufferDataStatic = (BufferDataStaticFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alBufferDataStatic"u8);
internal static readonly SourcedSOFTFn alSourcedSOFT = (SourcedSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSourcedSOFT"u8);
internal static readonly Source3dSOFTFn alSource3dSOFT = (Source3dSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSource3dSOFT"u8);
internal static readonly SourcedvSOFTFn alSourcedvSOFT = (SourcedvSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSourcedvSOFT"u8);
internal static readonly GetSourcedSOFTFn alGetSourcedSOFT = (GetSourcedSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetSourcedSOFT"u8);
internal static readonly GetSource3dSOFTFn alGetSource3dSOFT = (GetSource3dSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetSource3dSOFT"u8);
internal static readonly GetSourcedvSOFTFn alGetSourcedvSOFT = (GetSourcedvSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetSourcedvSOFT"u8);
internal static readonly Sourcei64SOFTFn alSourcei64SOFT = (Sourcei64SOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSourcei64SOFT"u8);
internal static readonly Source3i64SOFTFn alSource3i64SOFT = (Source3i64SOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSource3i64SOFT"u8);
internal static readonly Sourcei64vSOFTFn alSourcei64vSOFT = (Sourcei64vSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSourcei64vSOFT"u8);
internal static readonly GetSourcei64SOFTFn alGetSourcei64SOFT = (GetSourcei64SOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetSourcei64SOFT"u8);
internal static readonly GetSource3i64SOFTFn alGetSource3i64SOFT = (GetSource3i64SOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetSource3i64SOFT"u8);
internal static readonly GetSourcei64vSOFTFn alGetSourcei64vSOFT = (GetSourcei64vSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetSourcei64vSOFT"u8);
internal static readonly DeferUpdatesSOFTFn alDeferUpdatesSOFT = (DeferUpdatesSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alDeferUpdatesSOFT"u8);
internal static readonly ProcessUpdatesSOFTFn alProcessUpdatesSOFT = (ProcessUpdatesSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alProcessUpdatesSOFT"u8);
internal static readonly GetStringiSOFTFn alGetStringiSOFT = (GetStringiSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetStringiSOFT"u8);
internal static readonly EventControlSOFTFn alEventControlSOFT = (EventControlSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alEventControlSOFT"u8);
internal static readonly EventCallbackSOFTFn alEventCallbackSOFT = (EventCallbackSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alEventCallbackSOFT"u8);
internal static readonly GetPointerSOFTFn alGetPointerSOFT = (GetPointerSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetPointerSOFT"u8);
internal static readonly GetPointervSOFTFn alGetPointervSOFT = (GetPointervSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetPointervSOFT"u8);
internal static readonly BufferCallbackSOFTFn alBufferCallbackSOFT = (BufferCallbackSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alBufferCallbackSOFT"u8);
internal static readonly GetBufferPtrSOFTFn alGetBufferPtrSOFT = (GetBufferPtrSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetBufferPtrSOFT"u8);
internal static readonly GetBuffer3PtrSOFTFn alGetBuffer3PtrSOFT = (GetBuffer3PtrSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetBuffer3PtrSOFT"u8);
internal static readonly GetBufferPtrvSOFTFn alGetBufferPtrvSOFT = (GetBufferPtrvSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetBufferPtrvSOFT"u8);
internal static readonly SourcePlayAtTimeSOFTFn alSourcePlayAtTimeSOFT = (SourcePlayAtTimeSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSourcePlayAtTimeSOFT"u8);
internal static readonly SourcePlayAtTimevSOFTFn alSourcePlayAtTimevSOFT = (SourcePlayAtTimevSOFTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alSourcePlayAtTimevSOFT"u8);
internal static readonly DebugMessageCallbackEXTFn alDebugMessageCallbackEXT = (DebugMessageCallbackEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alDebugMessageCallbackEXT"u8);
internal static readonly DebugMessageInsertEXTFn alDebugMessageInsertEXT = (DebugMessageInsertEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alDebugMessageInsertEXT"u8);
internal static readonly DebugMessageControlEXTFn alDebugMessageControlEXT = (DebugMessageControlEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alDebugMessageControlEXT"u8);
internal static readonly PushDebugGroupEXTFn alPushDebugGroupEXT = (PushDebugGroupEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alPushDebugGroupEXT"u8);
internal static readonly PopDebugGroupEXTFn alPopDebugGroupEXT = (PopDebugGroupEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alPopDebugGroupEXT"u8);
internal static readonly GetDebugMessageLogEXTFn alGetDebugMessageLogEXT = (GetDebugMessageLogEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetDebugMessageLogEXT"u8);
internal static readonly ObjectLabelEXTFn alObjectLabelEXT = (ObjectLabelEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alObjectLabelEXT"u8);
internal static readonly GetObjectLabelEXTFn alGetObjectLabelEXT = (GetObjectLabelEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetObjectLabelEXT"u8);
internal static readonly GetPointerEXTFn alGetPointerEXT = (GetPointerEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetPointerEXT"u8);
internal static readonly GetPointervEXTFn alGetPointervEXT = (GetPointervEXTFn)
Alc.GetProcAddressUtf8(AlcDevice.Null, "alGetPointervEXT"u8);
}
public static partial class PInvoke
{
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_STATIC_BUFFER</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void BufferDataStatic(uint buffer, int format, void* data, int size, int freq)
{
if (ExtPointers.alBufferDataStatic is null)
{
AlExtensionException.ThrowMissing("alBufferDataStatic", "AL_EXT_STATIC_BUFFER");
}
ExtPointers.alBufferDataStatic(buffer, format, data, size, freq);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void SourcedSOFT(uint source, int param, double value)
{
if (ExtPointers.alSourcedSOFT is null)
{
AlExtensionException.ThrowMissing("alSourcedSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alSourcedSOFT(source, param, value);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void Source3dSOFT(uint source, int param, double value1, double value2, double value3)
{
if (ExtPointers.alSource3dSOFT is null)
{
AlExtensionException.ThrowMissing("alSource3dSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alSource3dSOFT(source, param, value1, value2, value3);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void SourcedvSOFT(uint source, int param, double* values)
{
if (ExtPointers.alSourcedvSOFT is null)
{
AlExtensionException.ThrowMissing("alSourcedvSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alSourcedvSOFT(source, param, values);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetSourcedSOFT(uint source, int param, double* value)
{
if (ExtPointers.alGetSourcedSOFT is null)
{
AlExtensionException.ThrowMissing("alGetSourcedSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alGetSourcedSOFT(source, param, value);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetSource3dSOFT(uint source, int param, double* value1, double* value2, double* value3)
{
if (ExtPointers.alGetSource3dSOFT is null)
{
AlExtensionException.ThrowMissing("alGetSource3dSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alGetSource3dSOFT(source, param, value1, value2, value3);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetSourcedvSOFT(uint source, int param, double* values)
{
if (ExtPointers.alGetSourcedvSOFT is null)
{
AlExtensionException.ThrowMissing("alGetSourcedvSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alGetSourcedvSOFT(source, param, values);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void Sourcei64SOFT(uint source, int param, long value)
{
if (ExtPointers.alSourcei64SOFT is null)
{
AlExtensionException.ThrowMissing("alSourcei64SOFT", "AL_SOFT_source_latency");
}
ExtPointers.alSourcei64SOFT(source, param, value);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void Source3i64SOFT(uint source, int param, long value1, long value2, long value3)
{
if (ExtPointers.alSource3i64SOFT is null)
{
AlExtensionException.ThrowMissing("alSource3i64SOFT", "AL_SOFT_source_latency");
}
ExtPointers.alSource3i64SOFT(source, param, value1, value2, value3);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void Sourcei64vSOFT(uint source, int param, long* values)
{
if (ExtPointers.alSourcei64vSOFT is null)
{
AlExtensionException.ThrowMissing("alSourcei64vSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alSourcei64vSOFT(source, param, values);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetSourcei64SOFT(uint source, int param, long* value)
{
if (ExtPointers.alGetSourcei64SOFT is null)
{
AlExtensionException.ThrowMissing("alGetSourcei64SOFT", "AL_SOFT_source_latency");
}
ExtPointers.alGetSourcei64SOFT(source, param, value);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetSource3i64SOFT(uint source, int param, long* value1, long* value2, long* value3)
{
if (ExtPointers.alGetSource3i64SOFT is null)
{
AlExtensionException.ThrowMissing("alGetSource3i64SOFT", "AL_SOFT_source_latency");
}
ExtPointers.alGetSource3i64SOFT(source, param, value1, value2, value3);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_latency</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetSourcei64vSOFT(uint source, int param, long* values)
{
if (ExtPointers.alGetSourcei64vSOFT is null)
{
AlExtensionException.ThrowMissing("alGetSourcei64vSOFT", "AL_SOFT_source_latency");
}
ExtPointers.alGetSourcei64vSOFT(source, param, values);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_deferred_updates</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void DeferUpdatesSOFT()
{
if (ExtPointers.alDeferUpdatesSOFT is null)
{
AlExtensionException.ThrowMissing("alDeferUpdatesSOFT", "AL_SOFT_deferred_updates");
}
ExtPointers.alDeferUpdatesSOFT();
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_deferred_updates</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void ProcessUpdatesSOFT()
{
if (ExtPointers.alProcessUpdatesSOFT is null)
{
AlExtensionException.ThrowMissing("alProcessUpdatesSOFT", "AL_SOFT_deferred_updates");
}
ExtPointers.alProcessUpdatesSOFT();
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_resampler</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static byte* GetStringiSOFT(int pname, int index)
{
if (ExtPointers.alGetStringiSOFT is null)
{
AlExtensionException.ThrowMissing("alGetStringiSOFT", "AL_SOFT_source_resampler");
}
return ExtPointers.alGetStringiSOFT(pname, index);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void EventControlSOFT(int count, int* types, Bool8 enable)
{
if (ExtPointers.alEventControlSOFT is null)
{
AlExtensionException.ThrowMissing("alEventControlSOFT", "AL_SOFT_events");
}
ExtPointers.alEventControlSOFT(count, types, enable);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void EventCallbackSOFT(void* callback, void* userParam)
{
if (ExtPointers.alEventCallbackSOFT is null)
{
AlExtensionException.ThrowMissing("alEventCallbackSOFT", "AL_SOFT_events");
}
ExtPointers.alEventCallbackSOFT(callback, userParam);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void* GetPointerSOFT(int pname)
{
if (ExtPointers.alGetPointerSOFT is null)
{
AlExtensionException.ThrowMissing("alGetPointerSOFT", "AL_SOFT_events");
}
return ExtPointers.alGetPointerSOFT(pname);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_events</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetPointervSOFT(int pname, void** values)
{
if (ExtPointers.alGetPointervSOFT is null)
{
AlExtensionException.ThrowMissing("alGetPointervSOFT", "AL_SOFT_events");
}
ExtPointers.alGetPointervSOFT(pname, values);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_callback_buffer</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void BufferCallbackSOFT(uint buffer, int format, int freq, void* callback, void* userptr)
{
if (ExtPointers.alBufferCallbackSOFT is null)
{
AlExtensionException.ThrowMissing("alBufferCallbackSOFT", "AL_SOFT_callback_buffer");
}
ExtPointers.alBufferCallbackSOFT(buffer, format, freq, callback, userptr);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_callback_buffer</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetBufferPtrSOFT(uint buffer, int param, void** ptr)
{
if (ExtPointers.alGetBufferPtrSOFT is null)
{
AlExtensionException.ThrowMissing("alGetBufferPtrSOFT", "AL_SOFT_callback_buffer");
}
ExtPointers.alGetBufferPtrSOFT(buffer, param, ptr);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_callback_buffer</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetBuffer3PtrSOFT(uint buffer, int param, void** ptr0, void** ptr1, void** ptr2)
{
if (ExtPointers.alGetBuffer3PtrSOFT is null)
{
AlExtensionException.ThrowMissing("alGetBuffer3PtrSOFT", "AL_SOFT_callback_buffer");
}
ExtPointers.alGetBuffer3PtrSOFT(buffer, param, ptr0, ptr1, ptr2);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_callback_buffer</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetBufferPtrvSOFT(uint buffer, int param, void** ptr)
{
if (ExtPointers.alGetBufferPtrvSOFT is null)
{
AlExtensionException.ThrowMissing("alGetBufferPtrvSOFT", "AL_SOFT_callback_buffer");
}
ExtPointers.alGetBufferPtrvSOFT(buffer, param, ptr);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_start_delay</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void SourcePlayAtTimeSOFT(uint source, long startTime)
{
if (ExtPointers.alSourcePlayAtTimeSOFT is null)
{
AlExtensionException.ThrowMissing("alSourcePlayAtTimeSOFT", "AL_SOFT_source_start_delay");
}
ExtPointers.alSourcePlayAtTimeSOFT(source, startTime);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_SOFT_source_start_delay</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void SourcePlayAtTimevSOFT(int n, uint* sources, long startTime)
{
if (ExtPointers.alSourcePlayAtTimevSOFT is null)
{
AlExtensionException.ThrowMissing("alSourcePlayAtTimevSOFT", "AL_SOFT_source_start_delay");
}
ExtPointers.alSourcePlayAtTimevSOFT(n, sources, startTime);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void DebugMessageCallbackEXT(void* callback, void* userParam)
{
if (ExtPointers.alDebugMessageCallbackEXT is null)
{
AlExtensionException.ThrowMissing("alDebugMessageCallbackEXT", "AL_EXT_debug");
}
ExtPointers.alDebugMessageCallbackEXT(callback, userParam);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void DebugMessageInsertEXT(
int source,
int type,
uint id,
int severity,
int length,
byte* message
)
{
if (ExtPointers.alDebugMessageInsertEXT is null)
{
AlExtensionException.ThrowMissing("alDebugMessageInsertEXT", "AL_EXT_debug");
}
ExtPointers.alDebugMessageInsertEXT(source, type, id, severity, length, message);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void DebugMessageControlEXT(
int source,
int type,
int severity,
int count,
uint* ids,
Bool8 enable
)
{
if (ExtPointers.alDebugMessageControlEXT is null)
{
AlExtensionException.ThrowMissing("alDebugMessageControlEXT", "AL_EXT_debug");
}
ExtPointers.alDebugMessageControlEXT(source, type, severity, count, ids, enable);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void PushDebugGroupEXT(int source, uint id, int length, byte* message)
{
if (ExtPointers.alPushDebugGroupEXT is null)
{
AlExtensionException.ThrowMissing("alPushDebugGroupEXT", "AL_EXT_debug");
}
ExtPointers.alPushDebugGroupEXT(source, id, length, message);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void PopDebugGroupEXT()
{
if (ExtPointers.alPopDebugGroupEXT is null)
{
AlExtensionException.ThrowMissing("alPopDebugGroupEXT", "AL_EXT_debug");
}
ExtPointers.alPopDebugGroupEXT();
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static uint GetDebugMessageLogEXT(
uint count,
int logBufSize,
int* sources,
int* types,
uint* ids,
int* severities,
int* lengths,
byte* logBuf
)
{
if (ExtPointers.alGetDebugMessageLogEXT is null)
{
AlExtensionException.ThrowMissing("alGetDebugMessageLogEXT", "AL_EXT_debug");
}
return ExtPointers.alGetDebugMessageLogEXT(
count,
logBufSize,
sources,
types,
ids,
severities,
lengths,
logBuf
);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void ObjectLabelEXT(int identifier, uint name, int length, byte* label)
{
if (ExtPointers.alObjectLabelEXT is null)
{
AlExtensionException.ThrowMissing("alObjectLabelEXT", "AL_EXT_debug");
}
ExtPointers.alObjectLabelEXT(identifier, name, length, label);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetObjectLabelEXT(int identifier, uint name, int bufSize, int* length, byte* label)
{
if (ExtPointers.alGetObjectLabelEXT is null)
{
AlExtensionException.ThrowMissing("alGetObjectLabelEXT", "AL_EXT_debug");
}
ExtPointers.alGetObjectLabelEXT(identifier, name, bufSize, length, label);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void* GetPointerEXT(int pname)
{
if (ExtPointers.alGetPointerEXT is null)
{
AlExtensionException.ThrowMissing("alGetPointerEXT", "AL_EXT_debug");
}
return ExtPointers.alGetPointerEXT(pname);
}
/// <summary>
/// </summary>
/// <remarks>
/// <para>
/// Provided by <c>AL_EXT_debug</c>. Dispatched via <c>alcGetProcAddress</c>; throws if the loaded binary lacks it.
/// </para>
/// </remarks>
public static void GetPointervEXT(int pname, void** values)
{
if (ExtPointers.alGetPointervEXT is null)
{
AlExtensionException.ThrowMissing("alGetPointervEXT", "AL_EXT_debug");
}
ExtPointers.alGetPointervEXT(pname, values);
}
}
}
}

View file

@ -0,0 +1,120 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class Al
{
internal static float GetListenerf(int param)
{
float value;
PInvoke.GetListenerf(param, &value);
return value;
}
internal static float3 GetListener3f(int param)
{
float x,
y,
z;
PInvoke.GetListener3f(param, &x, &y, &z);
return new float3(x, y, z);
}
internal static int GetListeneri(int param)
{
int value;
PInvoke.GetListeneri(param, &value);
return value;
}
internal static float GetSourcef(uint name, int param)
{
float value;
PInvoke.GetSourcef(name, param, &value);
return value;
}
internal static float3 GetSource3f(uint name, int param)
{
float x,
y,
z;
PInvoke.GetSource3f(name, param, &x, &y, &z);
return new float3(x, y, z);
}
internal static int GetSourcei(uint name, int param)
{
int value;
PInvoke.GetSourcei(name, param, &value);
return value;
}
internal static float GetBufferf(uint name, int param)
{
float value;
PInvoke.GetBufferf(name, param, &value);
return value;
}
internal static float3 GetBuffer3f(uint name, int param)
{
float x,
y,
z;
PInvoke.GetBuffer3f(name, param, &x, &y, &z);
return new float3(x, y, z);
}
internal static int GetBufferi(uint name, int param)
{
int value;
PInvoke.GetBufferi(name, param, &value);
return value;
}
internal static int GetEffecti(uint name, int param)
{
int value;
PInvoke.GetEffecti(name, param, &value);
return value;
}
internal static float GetEffectf(uint name, int param)
{
float value;
PInvoke.GetEffectf(name, param, &value);
return value;
}
internal static int GetFilteri(uint name, int param)
{
int value;
PInvoke.GetFilteri(name, param, &value);
return value;
}
internal static float GetFilterf(uint name, int param)
{
float value;
PInvoke.GetFilterf(name, param, &value);
return value;
}
internal static int GetAuxiliaryEffectSloti(uint name, int param)
{
int value;
PInvoke.GetAuxiliaryEffectSloti(name, param, &value);
return value;
}
internal static float GetAuxiliaryEffectSlotf(uint name, int param)
{
float value;
PInvoke.GetAuxiliaryEffectSlotf(name, param, &value);
return value;
}
}
}

View file

@ -0,0 +1,106 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
using static Brutal.OpenAlApi.Al.Constants;
namespace Brutal.OpenAlApi
{
public static unsafe partial class Al
{
public static partial class Listener
{
/// <summary>
/// Source or listener gain.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_GAIN</c> (<c>alListenerf</c>/<c>alGetListenerf</c>).
/// </para>
/// <para>
/// For sources, an initial linear gain value (before attenuation is applied). For the listener, an
/// output linear gain adjustment.
/// </para>
/// <para>
/// A value of 1.0 means unattenuated. Each division by 2 equals an attenuation of about -6dB. Each
/// multiplication by 2 equals an amplification of about +6dB.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; minimum 0.0.
/// </para>
/// </remarks>
public static float Gain
{
get => Al.GetListenerf(AL_GAIN);
set => Al.PInvoke.Listenerf(AL_GAIN, value);
}
/// <summary>
/// Source or listener position.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_POSITION</c> (<c>alListener3f</c>/<c>alGetListener3f</c>).
/// </para>
/// <para>
/// The source or listener location in three dimensional space.
/// </para>
/// <para>
/// OpenAL uses a right handed coordinate system, like OpenGL, where with a default view, X points right
/// (thumb), Y points up (index finger), and Z points towards the viewer/camera (middle finger).
/// </para>
/// <para>
/// To change from or to a left handed coordinate system, negate the Z component.
/// </para>
/// <para>
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
/// </para>
/// </remarks>
public static float3 Position
{
get => Al.GetListener3f(AL_POSITION);
set => Al.PInvoke.Listener3f(AL_POSITION, value.X, value.Y, value.Z);
}
/// <summary>
/// Source or listener velocity.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_VELOCITY</c> (<c>alListener3f</c>/<c>alGetListener3f</c>).
/// </para>
/// <para>
/// Specifies the current velocity, relative to the position.
/// </para>
/// <para>
/// To change from or to a left handed coordinate system, negate the Z component.
/// </para>
/// <para>
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
/// </para>
/// </remarks>
public static float3 Velocity
{
get => Al.GetListener3f(AL_VELOCITY);
set => Al.PInvoke.Listener3f(AL_VELOCITY, value.X, value.Y, value.Z);
}
/// <summary>
/// Gets/sets <c>AL_METERS_PER_UNIT</c> (<c>alListenerf</c>/<c>alGetListenerf</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>; minimum 0; default 1.0.
/// </para>
/// <para>
/// Requires <c>ALC_EXT_EFX</c>; a native error otherwise.
/// </para>
/// </remarks>
public static float MetersPerUnit
{
get => Al.GetListenerf(AL_METERS_PER_UNIT);
set => Al.PInvoke.Listenerf(AL_METERS_PER_UNIT, value);
}
}
}
}

View file

@ -0,0 +1,107 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class Al
{
/// <summary>
/// Generates buffers (<c>alGenBuffers</c>), filling <paramref name="buffers"/>.
/// </summary>
/// <param name="buffers">The span to fill; its length determines how many buffers are generated.</param>
public static void GenBuffers(Span<AlBuffer> buffers)
{
if (buffers.IsEmpty)
return;
var names = buffers.Cast<AlBuffer, uint>();
fixed (uint* p = names)
Al.PInvoke.GenBuffers(names.Length, p);
}
/// <summary>
/// Generates buffers (<c>alGenBuffers</c>). Allocates the returned array; use the <c>Span</c> overload to bring your own storage.
/// </summary>
/// <param name="count">How many buffers to generate; a non-positive count returns an empty array.</param>
public static AlBuffer[] GenBuffers(int count)
{
if (count <= 0)
return [];
var buffers = new AlBuffer[count];
GenBuffers(buffers.AsSpan());
return buffers;
}
/// <summary>
/// Generates a single buffer.
/// </summary>
public static AlBuffer GenBuffer()
{
Span<AlBuffer> buffer = stackalloc AlBuffer[1];
GenBuffers(buffer);
return buffer[0];
}
/// <summary>
/// Deletes the given buffers (<c>alDeleteBuffers</c>). Each must not be in use by a source. A successful delete releases any callback handlers registered via <see cref="AlBuffer.SetCallback"/>.
/// </summary>
/// <param name="buffers">The buffers to delete.</param>
public static void DeleteBuffers(ReadOnlySpan<AlBuffer> buffers)
{
if (buffers.IsEmpty)
return;
var names = buffers.Cast<AlBuffer, uint>();
fixed (uint* p = names)
AlBuffer.DeleteAndEvictCallbackRoots(p, names.Length);
}
/// <summary>
/// Generates sources (<c>alGenSources</c>), filling <paramref name="sources"/>.
/// </summary>
/// <param name="sources">The span to fill; its length determines how many sources are generated.</param>
public static void GenSources(Span<AlSource> sources)
{
if (sources.IsEmpty)
return;
var names = sources.Cast<AlSource, uint>();
fixed (uint* p = names)
Al.PInvoke.GenSources(names.Length, p);
}
/// <summary>
/// Generates sources (<c>alGenSources</c>). Allocates the returned array; use the <c>Span</c> overload to bring your own storage.
/// </summary>
/// <param name="count">How many sources to generate; a non-positive count returns an empty array.</param>
public static AlSource[] GenSources(int count)
{
if (count <= 0)
return [];
var sources = new AlSource[count];
GenSources(sources.AsSpan());
return sources;
}
/// <summary>
/// Generates a single source.
/// </summary>
public static AlSource GenSource()
{
Span<AlSource> source = stackalloc AlSource[1];
GenSources(source);
return source[0];
}
/// <summary>
/// Deletes the given sources (<c>alDeleteSources</c>).
/// </summary>
/// <param name="sources">The sources to delete.</param>
public static void DeleteSources(ReadOnlySpan<AlSource> sources)
{
if (sources.IsEmpty)
return;
var names = sources.Cast<AlSource, uint>();
fixed (uint* p = names)
Al.PInvoke.DeleteSources(names.Length, p);
}
}
}

View file

@ -0,0 +1,381 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class Al
{
public static partial class PInvoke
{
[LibraryImport(Dll, EntryPoint = "alEnable")]
public static partial void Enable(int capability);
[LibraryImport(Dll, EntryPoint = "alDisable")]
public static partial void Disable(int capability);
[LibraryImport(Dll, EntryPoint = "alIsEnabled")]
public static partial Bool8 IsEnabled(int capability);
[LibraryImport(Dll, EntryPoint = "alDopplerFactor")]
public static partial void DopplerFactor(float value);
[LibraryImport(Dll, EntryPoint = "alDopplerVelocity")]
public static partial void DopplerVelocity(float value);
[LibraryImport(Dll, EntryPoint = "alDistanceModel")]
public static partial void DistanceModel(int distanceModel);
[LibraryImport(Dll, EntryPoint = "alGetString")]
public static partial byte* GetString(int param);
[LibraryImport(Dll, EntryPoint = "alGetBooleanv")]
public static partial void GetBooleanv(int param, Bool8* values);
[LibraryImport(Dll, EntryPoint = "alGetIntegerv")]
public static partial void GetIntegerv(int param, int* values);
[LibraryImport(Dll, EntryPoint = "alGetFloatv")]
public static partial void GetFloatv(int param, float* values);
[LibraryImport(Dll, EntryPoint = "alGetDoublev")]
public static partial void GetDoublev(int param, double* values);
[LibraryImport(Dll, EntryPoint = "alGetBoolean")]
public static partial Bool8 GetBoolean(int param);
[LibraryImport(Dll, EntryPoint = "alGetInteger")]
public static partial int GetInteger(int param);
[LibraryImport(Dll, EntryPoint = "alGetFloat")]
public static partial float GetFloat(int param);
[LibraryImport(Dll, EntryPoint = "alGetDouble")]
public static partial double GetDouble(int param);
[LibraryImport(Dll, EntryPoint = "alGetError")]
public static partial int GetError();
/// <summary>
/// Query for the presence of an extension on the AL context.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alIsExtensionPresent")]
public static partial Bool8 IsExtensionPresent(byte* extname);
[LibraryImport(Dll, EntryPoint = "alGetProcAddress")]
public static partial void* GetProcAddress(byte* fname);
[LibraryImport(Dll, EntryPoint = "alGetEnumValue")]
public static partial int GetEnumValue(byte* ename);
[LibraryImport(Dll, EntryPoint = "alListenerf")]
public static partial void Listenerf(int param, float value);
[LibraryImport(Dll, EntryPoint = "alListener3f")]
public static partial void Listener3f(int param, float value1, float value2, float value3);
[LibraryImport(Dll, EntryPoint = "alListenerfv")]
public static partial void Listenerfv(int param, float* values);
[LibraryImport(Dll, EntryPoint = "alListeneri")]
public static partial void Listeneri(int param, int value);
[LibraryImport(Dll, EntryPoint = "alListener3i")]
public static partial void Listener3i(int param, int value1, int value2, int value3);
[LibraryImport(Dll, EntryPoint = "alListeneriv")]
public static partial void Listeneriv(int param, int* values);
[LibraryImport(Dll, EntryPoint = "alGetListenerf")]
public static partial void GetListenerf(int param, float* value);
[LibraryImport(Dll, EntryPoint = "alGetListener3f")]
public static partial void GetListener3f(int param, float* value1, float* value2, float* value3);
[LibraryImport(Dll, EntryPoint = "alGetListenerfv")]
public static partial void GetListenerfv(int param, float* values);
[LibraryImport(Dll, EntryPoint = "alGetListeneri")]
public static partial void GetListeneri(int param, int* value);
[LibraryImport(Dll, EntryPoint = "alGetListener3i")]
public static partial void GetListener3i(int param, int* value1, int* value2, int* value3);
[LibraryImport(Dll, EntryPoint = "alGetListeneriv")]
public static partial void GetListeneriv(int param, int* values);
/// <summary>
/// Create source objects.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alGenSources")]
public static partial void GenSources(int n, uint* sources);
/// <summary>
/// Delete source objects.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alDeleteSources")]
public static partial void DeleteSources(int n, uint* sources);
/// <summary>
/// Verify an ID is for a valid source.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alIsSource")]
public static partial Bool8 IsSource(uint source);
[LibraryImport(Dll, EntryPoint = "alSourcef")]
public static partial void Sourcef(uint source, int param, float value);
[LibraryImport(Dll, EntryPoint = "alSource3f")]
public static partial void Source3f(uint source, int param, float value1, float value2, float value3);
[LibraryImport(Dll, EntryPoint = "alSourcefv")]
public static partial void Sourcefv(uint source, int param, float* values);
[LibraryImport(Dll, EntryPoint = "alSourcei")]
public static partial void Sourcei(uint source, int param, int value);
[LibraryImport(Dll, EntryPoint = "alSource3i")]
public static partial void Source3i(uint source, int param, int value1, int value2, int value3);
[LibraryImport(Dll, EntryPoint = "alSourceiv")]
public static partial void Sourceiv(uint source, int param, int* values);
[LibraryImport(Dll, EntryPoint = "alGetSourcef")]
public static partial void GetSourcef(uint source, int param, float* value);
[LibraryImport(Dll, EntryPoint = "alGetSource3f")]
public static partial void GetSource3f(uint source, int param, float* value1, float* value2, float* value3);
[LibraryImport(Dll, EntryPoint = "alGetSourcefv")]
public static partial void GetSourcefv(uint source, int param, float* values);
[LibraryImport(Dll, EntryPoint = "alGetSourcei")]
public static partial void GetSourcei(uint source, int param, int* value);
[LibraryImport(Dll, EntryPoint = "alGetSource3i")]
public static partial void GetSource3i(uint source, int param, int* value1, int* value2, int* value3);
[LibraryImport(Dll, EntryPoint = "alGetSourceiv")]
public static partial void GetSourceiv(uint source, int param, int* values);
/// <summary>
/// Play, restart, or resume a source, setting its state to AL_PLAYING.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourcePlay")]
public static partial void SourcePlay(uint source);
/// <summary>
/// Stop a source, setting its state to AL_STOPPED if playing or paused.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourceStop")]
public static partial void SourceStop(uint source);
/// <summary>
/// Rewind a source, setting its state to AL_INITIAL.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourceRewind")]
public static partial void SourceRewind(uint source);
/// <summary>
/// Pause a source, setting its state to AL_PAUSED if playing.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourcePause")]
public static partial void SourcePause(uint source);
/// <summary>
/// Play, restart, or resume a list of sources atomically.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourcePlayv")]
public static partial void SourcePlayv(int n, uint* sources);
/// <summary>
/// Stop a list of sources atomically.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourceStopv")]
public static partial void SourceStopv(int n, uint* sources);
/// <summary>
/// Rewind a list of sources atomically.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourceRewindv")]
public static partial void SourceRewindv(int n, uint* sources);
/// <summary>
/// Pause a list of sources atomically.
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourcePausev")]
public static partial void SourcePausev(int n, uint* sources);
/// <summary>
/// Queue buffers onto a source
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourceQueueBuffers")]
public static partial void SourceQueueBuffers(uint source, int nb, uint* buffers);
/// <summary>
/// Unqueue processed buffers from a source
/// </summary>
[LibraryImport(Dll, EntryPoint = "alSourceUnqueueBuffers")]
public static partial void SourceUnqueueBuffers(uint source, int nb, uint* buffers);
/// <summary>
/// Create buffer objects
/// </summary>
[LibraryImport(Dll, EntryPoint = "alGenBuffers")]
public static partial void GenBuffers(int n, uint* buffers);
/// <summary>
/// Delete buffer objects
/// </summary>
[LibraryImport(Dll, EntryPoint = "alDeleteBuffers")]
public static partial void DeleteBuffers(int n, uint* buffers);
/// <summary>
/// Verify an ID is a valid buffer (including the NULL buffer)
/// </summary>
[LibraryImport(Dll, EntryPoint = "alIsBuffer")]
public static partial Bool8 IsBuffer(uint buffer);
[LibraryImport(Dll, EntryPoint = "alBufferData")]
public static partial void BufferData(uint buffer, int format, void* data, int size, int samplerate);
[LibraryImport(Dll, EntryPoint = "alBufferf")]
public static partial void Bufferf(uint buffer, int param, float value);
[LibraryImport(Dll, EntryPoint = "alBuffer3f")]
public static partial void Buffer3f(uint buffer, int param, float value1, float value2, float value3);
[LibraryImport(Dll, EntryPoint = "alBufferfv")]
public static partial void Bufferfv(uint buffer, int param, float* values);
[LibraryImport(Dll, EntryPoint = "alBufferi")]
public static partial void Bufferi(uint buffer, int param, int value);
[LibraryImport(Dll, EntryPoint = "alBuffer3i")]
public static partial void Buffer3i(uint buffer, int param, int value1, int value2, int value3);
[LibraryImport(Dll, EntryPoint = "alBufferiv")]
public static partial void Bufferiv(uint buffer, int param, int* values);
[LibraryImport(Dll, EntryPoint = "alGetBufferf")]
public static partial void GetBufferf(uint buffer, int param, float* value);
[LibraryImport(Dll, EntryPoint = "alGetBuffer3f")]
public static partial void GetBuffer3f(uint buffer, int param, float* value1, float* value2, float* value3);
[LibraryImport(Dll, EntryPoint = "alGetBufferfv")]
public static partial void GetBufferfv(uint buffer, int param, float* values);
[LibraryImport(Dll, EntryPoint = "alGetBufferi")]
public static partial void GetBufferi(uint buffer, int param, int* value);
[LibraryImport(Dll, EntryPoint = "alGetBuffer3i")]
public static partial void GetBuffer3i(uint buffer, int param, int* value1, int* value2, int* value3);
[LibraryImport(Dll, EntryPoint = "alGetBufferiv")]
public static partial void GetBufferiv(uint buffer, int param, int* values);
[LibraryImport(Dll, EntryPoint = "alSpeedOfSound")]
public static partial void SpeedOfSound(float value);
[LibraryImport(Dll, EntryPoint = "alGenEffects")]
public static partial void GenEffects(int n, uint* effects);
[LibraryImport(Dll, EntryPoint = "alDeleteEffects")]
public static partial void DeleteEffects(int n, uint* effects);
[LibraryImport(Dll, EntryPoint = "alIsEffect")]
public static partial Bool8 IsEffect(uint effect);
[LibraryImport(Dll, EntryPoint = "alEffecti")]
public static partial void Effecti(uint effect, int param, int iValue);
[LibraryImport(Dll, EntryPoint = "alEffectiv")]
public static partial void Effectiv(uint effect, int param, int* piValues);
[LibraryImport(Dll, EntryPoint = "alEffectf")]
public static partial void Effectf(uint effect, int param, float flValue);
[LibraryImport(Dll, EntryPoint = "alEffectfv")]
public static partial void Effectfv(uint effect, int param, float* pflValues);
[LibraryImport(Dll, EntryPoint = "alGetEffecti")]
public static partial void GetEffecti(uint effect, int param, int* iValue);
[LibraryImport(Dll, EntryPoint = "alGetEffectiv")]
public static partial void GetEffectiv(uint effect, int param, int* piValues);
[LibraryImport(Dll, EntryPoint = "alGetEffectf")]
public static partial void GetEffectf(uint effect, int param, float* flValue);
[LibraryImport(Dll, EntryPoint = "alGetEffectfv")]
public static partial void GetEffectfv(uint effect, int param, float* pflValues);
[LibraryImport(Dll, EntryPoint = "alGenFilters")]
public static partial void GenFilters(int n, uint* filters);
[LibraryImport(Dll, EntryPoint = "alDeleteFilters")]
public static partial void DeleteFilters(int n, uint* filters);
[LibraryImport(Dll, EntryPoint = "alIsFilter")]
public static partial Bool8 IsFilter(uint filter);
[LibraryImport(Dll, EntryPoint = "alFilteri")]
public static partial void Filteri(uint filter, int param, int iValue);
[LibraryImport(Dll, EntryPoint = "alFilteriv")]
public static partial void Filteriv(uint filter, int param, int* piValues);
[LibraryImport(Dll, EntryPoint = "alFilterf")]
public static partial void Filterf(uint filter, int param, float flValue);
[LibraryImport(Dll, EntryPoint = "alFilterfv")]
public static partial void Filterfv(uint filter, int param, float* pflValues);
[LibraryImport(Dll, EntryPoint = "alGetFilteri")]
public static partial void GetFilteri(uint filter, int param, int* iValue);
[LibraryImport(Dll, EntryPoint = "alGetFilteriv")]
public static partial void GetFilteriv(uint filter, int param, int* piValues);
[LibraryImport(Dll, EntryPoint = "alGetFilterf")]
public static partial void GetFilterf(uint filter, int param, float* flValue);
[LibraryImport(Dll, EntryPoint = "alGetFilterfv")]
public static partial void GetFilterfv(uint filter, int param, float* pflValues);
[LibraryImport(Dll, EntryPoint = "alGenAuxiliaryEffectSlots")]
public static partial void GenAuxiliaryEffectSlots(int n, uint* effectslots);
[LibraryImport(Dll, EntryPoint = "alDeleteAuxiliaryEffectSlots")]
public static partial void DeleteAuxiliaryEffectSlots(int n, uint* effectslots);
[LibraryImport(Dll, EntryPoint = "alIsAuxiliaryEffectSlot")]
public static partial Bool8 IsAuxiliaryEffectSlot(uint effectslot);
[LibraryImport(Dll, EntryPoint = "alAuxiliaryEffectSloti")]
public static partial void AuxiliaryEffectSloti(uint effectslot, int param, int iValue);
[LibraryImport(Dll, EntryPoint = "alAuxiliaryEffectSlotiv")]
public static partial void AuxiliaryEffectSlotiv(uint effectslot, int param, int* piValues);
[LibraryImport(Dll, EntryPoint = "alAuxiliaryEffectSlotf")]
public static partial void AuxiliaryEffectSlotf(uint effectslot, int param, float flValue);
[LibraryImport(Dll, EntryPoint = "alAuxiliaryEffectSlotfv")]
public static partial void AuxiliaryEffectSlotfv(uint effectslot, int param, float* pflValues);
[LibraryImport(Dll, EntryPoint = "alGetAuxiliaryEffectSloti")]
public static partial void GetAuxiliaryEffectSloti(uint effectslot, int param, int* iValue);
[LibraryImport(Dll, EntryPoint = "alGetAuxiliaryEffectSlotiv")]
public static partial void GetAuxiliaryEffectSlotiv(uint effectslot, int param, int* piValues);
[LibraryImport(Dll, EntryPoint = "alGetAuxiliaryEffectSlotf")]
public static partial void GetAuxiliaryEffectSlotf(uint effectslot, int param, float* flValue);
[LibraryImport(Dll, EntryPoint = "alGetAuxiliaryEffectSlotfv")]
public static partial void GetAuxiliaryEffectSlotfv(uint effectslot, int param, float* pflValues);
}
}
}

View file

@ -0,0 +1,61 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class Al
{
/// <summary>
/// Pauses playback of the given sources (<c>alSourcePausev</c>), as one operation.
/// </summary>
/// <param name="sources">The sources to pause.</param>
public static void PauseSources(ReadOnlySpan<AlSource> sources)
{
if (sources.IsEmpty)
return;
var names = sources.Cast<AlSource, uint>();
fixed (uint* p = names)
Al.PInvoke.SourcePausev(names.Length, p);
}
/// <summary>
/// Starts or resumes playback of the given sources (<c>alSourcePlayv</c>). The sources start as one operation, which is what makes a multi-source cue sample-aligned.
/// </summary>
/// <param name="sources">The sources to play.</param>
public static void PlaySources(ReadOnlySpan<AlSource> sources)
{
if (sources.IsEmpty)
return;
var names = sources.Cast<AlSource, uint>();
fixed (uint* p = names)
Al.PInvoke.SourcePlayv(names.Length, p);
}
/// <summary>
/// Rewinds the given sources to the start of their buffers (<c>alSourceRewindv</c>), as one operation.
/// </summary>
/// <param name="sources">The sources to rewind.</param>
public static void RewindSources(ReadOnlySpan<AlSource> sources)
{
if (sources.IsEmpty)
return;
var names = sources.Cast<AlSource, uint>();
fixed (uint* p = names)
Al.PInvoke.SourceRewindv(names.Length, p);
}
/// <summary>
/// Stops playback of the given sources (<c>alSourceStopv</c>), as one operation.
/// </summary>
/// <param name="sources">The sources to stop.</param>
public static void StopSources(ReadOnlySpan<AlSource> sources)
{
if (sources.IsEmpty)
return;
var names = sources.Cast<AlSource, uint>();
fixed (uint* p = names)
Al.PInvoke.SourceStopv(names.Length, p);
}
}
}

View file

@ -0,0 +1,55 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
/// <summary>
/// An EFX auxiliary effect slot object (an <c>ALuint</c> object name); requires <c>ALC_EXT_EFX</c>.
/// </summary>
/// <remarks>
/// <para>
/// Created by <see cref="Efx.CreateAuxiliaryEffectSlot"/> (or <see cref="Efx.GenAuxiliaryEffectSlot"/>) and released by <see cref="Delete"/>. This is a plain name, not a resource handle: copies refer to the same auxiliary effect slot; delete it exactly once. Operating on a null or deleted name sets <see cref="AlError.InvalidName"/> (see <see cref="Al.ThrowIfError"/>). A slot holds per-context state (the loaded effect and its gain/send settings).
/// </para>
/// </remarks>
public unsafe readonly partial struct AlAuxiliaryEffectSlot : INullable
{
/// <summary>
/// The raw OpenAL object name.
/// </summary>
public readonly uint Name;
/// <summary>
/// Wraps an existing object name without validating it.
/// </summary>
/// <param name="name">The raw OpenAL object name.</param>
public AlAuxiliaryEffectSlot(uint name) => Name = name;
/// <summary>
/// The null auxiliary effect slot (name <c>0</c>).
/// </summary>
public static AlAuxiliaryEffectSlot Null
{
get => default;
}
/// <summary>
/// Returns <see langword="true"/> if this is the null auxiliary effect slot.
/// </summary>
public bool IsNull() => Name == 0;
/// <summary>
/// Deletes the auxiliary effect slot (<c>alDeleteAuxiliaryEffectSlots</c>). Its effect must be detached first.
/// </summary>
public void Delete()
{
var name = Name;
Al.PInvoke.DeleteAuxiliaryEffectSlots(1, &name);
}
/// <summary>
/// Returns <see langword="true"/> if the name is a live auxiliary effect slot (<c>alIsAuxiliaryEffectSlot</c>).
/// </summary>
public bool IsValid() => Al.PInvoke.IsAuxiliaryEffectSlot(Name);
}
}

View file

@ -0,0 +1,66 @@
// <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 AlAuxiliaryEffectSlot
{
/// <summary>
/// Gets <c>AL_EFFECTSLOT_EFFECT</c> (<c>alGetAuxiliaryEffectSloti</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALuint</c>; default <c>AL_EFFECT_NULL</c>.
/// </para>
/// </remarks>
public AlEffect Effect
{
get => new AlEffect((uint)Al.GetAuxiliaryEffectSloti(Name, AL_EFFECTSLOT_EFFECT));
}
/// <summary>
/// Gets/sets <c>AL_EFFECTSLOT_GAIN</c> (<c>alAuxiliaryEffectSlotf</c>/<c>alGetAuxiliaryEffectSlotf</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>; range 0.0 to 1.0; default 1.0.
/// </para>
/// </remarks>
public float Gain
{
get => Al.GetAuxiliaryEffectSlotf(Name, AL_EFFECTSLOT_GAIN);
set => Al.PInvoke.AuxiliaryEffectSlotf(Name, AL_EFFECTSLOT_GAIN, value);
}
/// <summary>
/// Gets/sets <c>AL_EFFECTSLOT_AUXILIARY_SEND_AUTO</c> (<c>alAuxiliaryEffectSloti</c>/<c>alGetAuxiliaryEffectSloti</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
/// </para>
/// </remarks>
public bool SendAuto
{
get => Al.GetAuxiliaryEffectSloti(Name, AL_EFFECTSLOT_AUXILIARY_SEND_AUTO) != AL_FALSE;
set => Al.PInvoke.AuxiliaryEffectSloti(Name, AL_EFFECTSLOT_AUXILIARY_SEND_AUTO, value ? AL_TRUE : AL_FALSE);
}
/// <summary>
/// Gets/sets <c>AL_EFFECTSLOT_TARGET_SOFT</c> (<c>alAuxiliaryEffectSloti</c>/<c>alGetAuxiliaryEffectSloti</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALuint</c>; default <c>AL_EFFECTSLOT_NULL</c>.
/// </para>
/// </remarks>
public AlAuxiliaryEffectSlot Target
{
get => new AlAuxiliaryEffectSlot((uint)Al.GetAuxiliaryEffectSloti(Name, AL_EFFECTSLOT_TARGET_SOFT));
set => Al.PInvoke.AuxiliaryEffectSloti(Name, AL_EFFECTSLOT_TARGET_SOFT, (int)value.Name);
}
}
}

View file

@ -0,0 +1,55 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
/// <summary>
/// An OpenAL buffer (an <c>ALuint</c> object name).
/// </summary>
/// <remarks>
/// <para>
/// Created by <see cref="Al.GenBuffers"/> and released by <see cref="Delete"/> (or <see cref="Al.DeleteBuffers"/> in bulk). This is a plain name, not a resource handle: copies refer to the same buffer; delete it exactly once. Operating on a null or deleted name sets <see cref="AlError.InvalidName"/> (see <see cref="Al.ThrowIfError"/>). For parameter access keyed by enum, import the opt-in <c>Brutal.OpenAlApi.Params</c> namespace.
/// </para>
/// </remarks>
public unsafe readonly partial struct AlBuffer : INullable
{
/// <summary>
/// The raw OpenAL object name.
/// </summary>
public readonly uint Name;
/// <summary>
/// Wraps an existing object name without validating it.
/// </summary>
/// <param name="name">The raw OpenAL object name.</param>
public AlBuffer(uint name) => Name = name;
/// <summary>
/// The null buffer (name <c>0</c>). OpenAL never assigns it to a real buffer.
/// </summary>
public static AlBuffer Null
{
get => default;
}
/// <summary>
/// Returns <see langword="true"/> if this is the null buffer.
/// </summary>
public bool IsNull() => Name == 0;
/// <summary>
/// Deletes the buffer (<c>alDeleteBuffers</c>). It must not be in use by a source. A successful delete releases any callback handler registered via <see cref="SetCallback"/>.
/// </summary>
public void Delete()
{
var name = Name;
DeleteAndEvictCallbackRoots(&name, 1);
}
/// <summary>
/// Returns <see langword="true"/> if the name is a live buffer (<c>alIsBuffer</c>).
/// </summary>
public bool IsValid() => Al.PInvoke.IsBuffer(Name);
}
}

View file

@ -0,0 +1,198 @@
// <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);
}
}
}

View file

@ -0,0 +1,99 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class AlDebug
{
/// <summary>
/// Labels the auxiliary effect slot for diagnostics (<c>alObjectLabelEXT</c>); a <see langword="null"/> label clears it.
/// </summary>
public static void ObjectLabel(AlAuxiliaryEffectSlot auxiliaryEffectSlot, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.AuxiliaryEffectSlot, auxiliaryEffectSlot.Name, label);
/// <summary>
/// Labels the auxiliary effect slot for diagnostics (<c>alObjectLabelEXT</c>) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
/// </summary>
public static void ObjectLabel(AlAuxiliaryEffectSlot auxiliaryEffectSlot, ReadOnlySpan<byte> label) =>
ObjectLabel(AlObjectLabelIdentifier.AuxiliaryEffectSlot, auxiliaryEffectSlot.Name, label);
/// <summary>
/// Labels the buffer for diagnostics (<c>alObjectLabelEXT</c>); a <see langword="null"/> label clears it.
/// </summary>
public static void ObjectLabel(AlBuffer buffer, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Buffer, buffer.Name, label);
/// <summary>
/// Labels the buffer for diagnostics (<c>alObjectLabelEXT</c>) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
/// </summary>
public static void ObjectLabel(AlBuffer buffer, ReadOnlySpan<byte> label) =>
ObjectLabel(AlObjectLabelIdentifier.Buffer, buffer.Name, label);
/// <summary>
/// Labels the effect for diagnostics (<c>alObjectLabelEXT</c>); a <see langword="null"/> label clears it.
/// </summary>
public static void ObjectLabel(AlEffect effect, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Effect, effect.Name, label);
/// <summary>
/// Labels the effect for diagnostics (<c>alObjectLabelEXT</c>) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
/// </summary>
public static void ObjectLabel(AlEffect effect, ReadOnlySpan<byte> label) =>
ObjectLabel(AlObjectLabelIdentifier.Effect, effect.Name, label);
/// <summary>
/// Labels the filter for diagnostics (<c>alObjectLabelEXT</c>); a <see langword="null"/> label clears it.
/// </summary>
public static void ObjectLabel(AlFilter filter, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Filter, filter.Name, label);
/// <summary>
/// Labels the filter for diagnostics (<c>alObjectLabelEXT</c>) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
/// </summary>
public static void ObjectLabel(AlFilter filter, ReadOnlySpan<byte> label) =>
ObjectLabel(AlObjectLabelIdentifier.Filter, filter.Name, label);
/// <summary>
/// Labels the source for diagnostics (<c>alObjectLabelEXT</c>); a <see langword="null"/> label clears it.
/// </summary>
public static void ObjectLabel(AlSource source, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Source, source.Name, label);
/// <summary>
/// Labels the source for diagnostics (<c>alObjectLabelEXT</c>) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
/// </summary>
public static void ObjectLabel(AlSource source, ReadOnlySpan<byte> label) =>
ObjectLabel(AlObjectLabelIdentifier.Source, source.Name, label);
/// <summary>
/// Gets the auxiliary effect slot's diagnostic label (<c>alGetObjectLabelEXT</c>) as UTF-8 bytes, or an empty span if none was set; see <see cref="GetObjectLabel(AlObjectLabelIdentifier, uint)"/> for the returned span's validity rules.
/// </summary>
public static ReadOnlySpan<byte> GetObjectLabel(AlAuxiliaryEffectSlot auxiliaryEffectSlot) =>
GetObjectLabel(AlObjectLabelIdentifier.AuxiliaryEffectSlot, auxiliaryEffectSlot.Name);
/// <summary>
/// Gets the buffer's diagnostic label (<c>alGetObjectLabelEXT</c>) as UTF-8 bytes, or an empty span if none was set; see <see cref="GetObjectLabel(AlObjectLabelIdentifier, uint)"/> for the returned span's validity rules.
/// </summary>
public static ReadOnlySpan<byte> GetObjectLabel(AlBuffer buffer) =>
GetObjectLabel(AlObjectLabelIdentifier.Buffer, buffer.Name);
/// <summary>
/// Gets the effect's diagnostic label (<c>alGetObjectLabelEXT</c>) as UTF-8 bytes, or an empty span if none was set; see <see cref="GetObjectLabel(AlObjectLabelIdentifier, uint)"/> for the returned span's validity rules.
/// </summary>
public static ReadOnlySpan<byte> GetObjectLabel(AlEffect effect) =>
GetObjectLabel(AlObjectLabelIdentifier.Effect, effect.Name);
/// <summary>
/// Gets the filter's diagnostic label (<c>alGetObjectLabelEXT</c>) as UTF-8 bytes, or an empty span if none was set; see <see cref="GetObjectLabel(AlObjectLabelIdentifier, uint)"/> for the returned span's validity rules.
/// </summary>
public static ReadOnlySpan<byte> GetObjectLabel(AlFilter filter) =>
GetObjectLabel(AlObjectLabelIdentifier.Filter, filter.Name);
/// <summary>
/// Gets the source's diagnostic label (<c>alGetObjectLabelEXT</c>) as UTF-8 bytes, or an empty span if none was set; see <see cref="GetObjectLabel(AlObjectLabelIdentifier, uint)"/> for the returned span's validity rules.
/// </summary>
public static ReadOnlySpan<byte> GetObjectLabel(AlSource source) =>
GetObjectLabel(AlObjectLabelIdentifier.Source, source.Name);
}
}

View file

@ -0,0 +1,55 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
/// <summary>
/// An EFX effect object (an <c>ALuint</c> object name); requires <c>ALC_EXT_EFX</c>.
/// </summary>
/// <remarks>
/// <para>
/// Created by the typed <see cref="Efx"/> create methods (or <see cref="Efx.GenEffect"/>) and released by <see cref="Delete"/>. This is a plain name, not a resource handle: copies refer to the same effect; delete it exactly once. Operating on a null or deleted name sets <see cref="AlError.InvalidName"/> (see <see cref="Al.ThrowIfError"/>).
/// </para>
/// </remarks>
public unsafe readonly partial struct AlEffect : INullable
{
/// <summary>
/// The raw OpenAL object name.
/// </summary>
public readonly uint Name;
/// <summary>
/// Wraps an existing object name without validating it.
/// </summary>
/// <param name="name">The raw OpenAL object name.</param>
public AlEffect(uint name) => Name = name;
/// <summary>
/// The null effect (name <c>0</c>). Passing it to <see cref="AlAuxiliaryEffectSlot.Load"/> detaches the slot's effect.
/// </summary>
public static AlEffect Null
{
get => default;
}
/// <summary>
/// Returns <see langword="true"/> if this is the null effect.
/// </summary>
public bool IsNull() => Name == 0;
/// <summary>
/// Deletes the effect (<c>alDeleteEffects</c>). It must not be attached to a slot.
/// </summary>
public void Delete()
{
var name = Name;
Al.PInvoke.DeleteEffects(1, &name);
}
/// <summary>
/// Returns <see langword="true"/> if the name is a live effect (<c>alIsEffect</c>).
/// </summary>
public bool IsValid() => Al.PInvoke.IsEffect(Name);
}
}

View file

@ -0,0 +1,24 @@
// <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 AlEffect
{
/// <summary>
/// Gets <c>AL_EFFECT_TYPE</c> (<c>alGetEffecti</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALenum</c>; default <c>AL_EFFECT_NULL</c>.
/// </para>
/// </remarks>
public AlEffectType Type
{
get => (AlEffectType)Al.GetEffecti(Name, AL_EFFECT_TYPE);
}
}
}

View file

@ -0,0 +1,55 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
/// <summary>
/// An EFX filter object (an <c>ALuint</c> object name); requires <c>ALC_EXT_EFX</c>.
/// </summary>
/// <remarks>
/// <para>
/// Created by the typed <see cref="Efx"/> create methods (or <see cref="Efx.GenFilter"/>) and released by <see cref="Delete"/>. This is a plain name, not a resource handle: copies refer to the same filter; delete it exactly once. Operating on a null or deleted name sets <see cref="AlError.InvalidName"/> (see <see cref="Al.ThrowIfError"/>).
/// </para>
/// </remarks>
public unsafe readonly partial struct AlFilter : INullable
{
/// <summary>
/// The raw OpenAL object name.
/// </summary>
public readonly uint Name;
/// <summary>
/// Wraps an existing object name without validating it.
/// </summary>
/// <param name="name">The raw OpenAL object name.</param>
public AlFilter(uint name) => Name = name;
/// <summary>
/// The null filter (name <c>0</c>). Clears the filter when set on a source or send.
/// </summary>
public static AlFilter Null
{
get => default;
}
/// <summary>
/// Returns <see langword="true"/> if this is the null filter.
/// </summary>
public bool IsNull() => Name == 0;
/// <summary>
/// Deletes the filter (<c>alDeleteFilters</c>). It must not be attached to a source or send.
/// </summary>
public void Delete()
{
var name = Name;
Al.PInvoke.DeleteFilters(1, &name);
}
/// <summary>
/// Returns <see langword="true"/> if the name is a live filter (<c>alIsFilter</c>).
/// </summary>
public bool IsValid() => Al.PInvoke.IsFilter(Name);
}
}

View file

@ -0,0 +1,24 @@
// <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 AlFilter
{
/// <summary>
/// Gets <c>AL_FILTER_TYPE</c> (<c>alGetFilteri</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALenum</c>; default <c>AL_FILTER_NULL</c>.
/// </para>
/// </remarks>
public AlFilterType Type
{
get => (AlFilterType)Al.GetFilteri(Name, AL_FILTER_TYPE);
}
}
}

View file

@ -0,0 +1,55 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
/// <summary>
/// An OpenAL source (an <c>ALuint</c> object name).
/// </summary>
/// <remarks>
/// <para>
/// Created by <see cref="Al.GenSources"/> and released by <see cref="Delete"/> (or <see cref="Al.DeleteSources"/> in bulk). This is a plain name, not a resource handle: copies refer to the same source; delete it exactly once. Operating on a null or deleted name sets <see cref="AlError.InvalidName"/> (see <see cref="Al.ThrowIfError"/>). For parameter access keyed by enum, import the opt-in <c>Brutal.OpenAlApi.Params</c> namespace.
/// </para>
/// </remarks>
public unsafe readonly partial struct AlSource : INullable
{
/// <summary>
/// The raw OpenAL object name.
/// </summary>
public readonly uint Name;
/// <summary>
/// Wraps an existing object name without validating it.
/// </summary>
/// <param name="name">The raw OpenAL object name.</param>
public AlSource(uint name) => Name = name;
/// <summary>
/// The null source (name <c>0</c>). OpenAL never assigns it to a real source.
/// </summary>
public static AlSource Null
{
get => default;
}
/// <summary>
/// Returns <see langword="true"/> if this is the null source.
/// </summary>
public bool IsNull() => Name == 0;
/// <summary>
/// Deletes the source (<c>alDeleteSources</c>).
/// </summary>
public void Delete()
{
var name = Name;
Al.PInvoke.DeleteSources(1, &name);
}
/// <summary>
/// Returns <see langword="true"/> if the name is a live source (<c>alIsSource</c>).
/// </summary>
public bool IsValid() => Al.PInvoke.IsSource(Name);
}
}

View file

@ -0,0 +1,741 @@
// <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 AlSource
{
/// <summary>
/// Source or listener gain.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// For sources, an initial linear gain value (before attenuation is applied). For the listener, an output
/// linear gain adjustment.
/// </para>
/// <para>
/// A value of 1.0 means unattenuated. Each division by 2 equals an attenuation of about -6dB. Each
/// multiplication by 2 equals an amplification of about +6dB.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; minimum 0.0.
/// </para>
/// </remarks>
public float Gain
{
get => Al.GetSourcef(Name, AL_GAIN);
set => Al.PInvoke.Sourcef(Name, AL_GAIN, value);
}
/// <summary>
/// Source pitch.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_PITCH</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// A multiplier for the sample rate of the source's buffer.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; range 0.5 to 2.0; default 1.0.
/// </para>
/// </remarks>
public float Pitch
{
get => Al.GetSourcef(Name, AL_PITCH);
set => Al.PInvoke.Sourcef(Name, AL_PITCH, value);
}
/// <summary>
/// Minimum source gain.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_MIN_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The minimum gain allowed for a source, after distance and cone attenuation are applied (if applicable).
/// </para>
/// <para>
/// Type <c>ALfloat</c>; range 0.0 to 1.0.
/// </para>
/// </remarks>
public float MinGain
{
get => Al.GetSourcef(Name, AL_MIN_GAIN);
set => Al.PInvoke.Sourcef(Name, AL_MIN_GAIN, value);
}
/// <summary>
/// Maximum source gain.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_MAX_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The maximum gain allowed for a source, after distance and cone attenuation are applied (if applicable).
/// </para>
/// <para>
/// Type <c>ALfloat</c>; range 0.0 to 1.0.
/// </para>
/// </remarks>
public float MaxGain
{
get => Al.GetSourcef(Name, AL_MAX_GAIN);
set => Al.PInvoke.Sourcef(Name, AL_MAX_GAIN, value);
}
/// <summary>
/// Source maximum distance.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_MAX_DISTANCE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The distance above which the source is not attenuated any further with a clamped distance model, or
/// where attenuation reaches 0.0 gain for linear distance models with a default rolloff factor.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; minimum 0.0; default <c>FLT_MAX</c>.
/// </para>
/// </remarks>
public float MaxDistance
{
get => Al.GetSourcef(Name, AL_MAX_DISTANCE);
set => Al.PInvoke.Sourcef(Name, AL_MAX_DISTANCE, value);
}
/// <summary>
/// Source rolloff factor.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_ROLLOFF_FACTOR</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// Multiplier to exaggerate or diminish distance attenuation.
/// </para>
/// <para>
/// At 0.0, no distance attenuation ever occurs.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; minimum 0.0; default 1.0.
/// </para>
/// </remarks>
public float RolloffFactor
{
get => Al.GetSourcef(Name, AL_ROLLOFF_FACTOR);
set => Al.PInvoke.Sourcef(Name, AL_ROLLOFF_FACTOR, value);
}
/// <summary>
/// Source reference distance.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_REFERENCE_DISTANCE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The distance in units that no distance attenuation occurs.
/// </para>
/// <para>
/// At 0.0, no distance attenuation occurs with non-linear attenuation models.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; minimum 0.0; default 1.0.
/// </para>
/// </remarks>
public float ReferenceDistance
{
get => Al.GetSourcef(Name, AL_REFERENCE_DISTANCE);
set => Al.PInvoke.Sourcef(Name, AL_REFERENCE_DISTANCE, value);
}
/// <summary>
/// Outer cone gain.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_CONE_OUTER_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The gain attenuation applied when the listener is outside of the source's outer cone angle.
/// </para>
/// <para>
/// Type <c>ALfloat</c>; range 0.0 to 1.0; default 0.0.
/// </para>
/// </remarks>
public float ConeOuterGain
{
get => Al.GetSourcef(Name, AL_CONE_OUTER_GAIN);
set => Al.PInvoke.Sourcef(Name, AL_CONE_OUTER_GAIN, value);
}
/// <summary>
/// Inner cone angle, in degrees.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_CONE_INNER_ANGLE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The angle covered by the inner cone, the area within which the source will not be attenuated by
/// direction.
/// </para>
/// <para>
/// Type <c>ALint</c>/<c>ALfloat</c>; range 0 to 360; default 360.
/// </para>
/// </remarks>
public float ConeInnerAngle
{
get => Al.GetSourcef(Name, AL_CONE_INNER_ANGLE);
set => Al.PInvoke.Sourcef(Name, AL_CONE_INNER_ANGLE, value);
}
/// <summary>
/// Outer cone angle, in degrees.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_CONE_OUTER_ANGLE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// The angle covered by the outer cone, the area outside of which the source will be fully attenuated by
/// direction.
/// </para>
/// <para>
/// Type <c>ALint</c>/<c>ALfloat</c>; range 0 to 360; default 360.
/// </para>
/// </remarks>
public float ConeOuterAngle
{
get => Al.GetSourcef(Name, AL_CONE_OUTER_ANGLE);
set => Al.PInvoke.Sourcef(Name, AL_CONE_OUTER_ANGLE, value);
}
/// <summary>
/// Source buffer offset, in seconds.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_SEC_OFFSET</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </para>
/// <para>
/// Type <c>ALfloat</c>/<c>ALint</c>; minimum 0.
/// </para>
/// </remarks>
public float SecOffset
{
get => Al.GetSourcef(Name, AL_SEC_OFFSET);
set => Al.PInvoke.Sourcef(Name, AL_SEC_OFFSET, value);
}
/// <summary>
/// Source buffer offset, in sample frames.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_SAMPLE_OFFSET</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </para>
/// <para>
/// Type <c>ALint</c>; minimum 0.
/// </para>
/// </remarks>
public int SampleOffset
{
get => Al.GetSourcei(Name, AL_SAMPLE_OFFSET);
set => Al.PInvoke.Sourcei(Name, AL_SAMPLE_OFFSET, value);
}
/// <summary>
/// Source buffer offset, in bytes.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_BYTE_OFFSET</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </para>
/// <para>
/// Type <c>ALint</c>; minimum 0.
/// </para>
/// </remarks>
public int ByteOffset
{
get => Al.GetSourcei(Name, AL_BYTE_OFFSET);
set => Al.PInvoke.Sourcei(Name, AL_BYTE_OFFSET, value);
}
/// <summary>
/// Source or listener position.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_POSITION</c> (<c>alSource3f</c>/<c>alGetSource3f</c>).
/// </para>
/// <para>
/// The source or listener location in three dimensional space.
/// </para>
/// <para>
/// OpenAL uses a right handed coordinate system, like OpenGL, where with a default view, X points right
/// (thumb), Y points up (index finger), and Z points towards the viewer/camera (middle finger).
/// </para>
/// <para>
/// To change from or to a left handed coordinate system, negate the Z component.
/// </para>
/// <para>
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
/// </para>
/// </remarks>
public float3 Position
{
get => Al.GetSource3f(Name, AL_POSITION);
set => Al.PInvoke.Source3f(Name, AL_POSITION, value.X, value.Y, value.Z);
}
/// <summary>
/// Source or listener velocity.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_VELOCITY</c> (<c>alSource3f</c>/<c>alGetSource3f</c>).
/// </para>
/// <para>
/// Specifies the current velocity, relative to the position.
/// </para>
/// <para>
/// To change from or to a left handed coordinate system, negate the Z component.
/// </para>
/// <para>
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
/// </para>
/// </remarks>
public float3 Velocity
{
get => Al.GetSource3f(Name, AL_VELOCITY);
set => Al.PInvoke.Source3f(Name, AL_VELOCITY, value.X, value.Y, value.Z);
}
/// <summary>
/// Source direction.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_DIRECTION</c> (<c>alSource3f</c>/<c>alGetSource3f</c>).
/// </para>
/// <para>
/// Specifies the current direction in local space. A zero-length vector specifies an omni-directional
/// source (cone is ignored).
/// </para>
/// <para>
/// To change from or to a left handed coordinate system, negate the Z component.
/// </para>
/// <para>
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
/// </para>
/// </remarks>
public float3 Direction
{
get => Al.GetSource3f(Name, AL_DIRECTION);
set => Al.PInvoke.Source3f(Name, AL_DIRECTION, value.X, value.Y, value.Z);
}
/// <summary>
/// Source looping.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_LOOPING</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </para>
/// <para>
/// Specifies whether source playback loops.
/// </para>
/// <para>
/// Type <c>ALboolean</c>; default <c>AL_FALSE</c>.
/// </para>
/// </remarks>
public bool Looping
{
get => Al.GetSourcei(Name, AL_LOOPING) != AL_FALSE;
set => Al.PInvoke.Sourcei(Name, AL_LOOPING, value ? AL_TRUE : AL_FALSE);
}
/// <summary>
/// Relative source.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_SOURCE_RELATIVE</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </para>
/// <para>
/// Specifies if the source uses relative coordinates.
/// </para>
/// <para>
/// Type <c>ALboolean</c>; default <c>AL_FALSE</c>.
/// </para>
/// </remarks>
public bool SourceRelative
{
get => Al.GetSourcei(Name, AL_SOURCE_RELATIVE) != AL_FALSE;
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_RELATIVE, value ? AL_TRUE : AL_FALSE);
}
/// <summary>
/// Source buffer.
/// </summary>
/// <remarks>
/// <para>
/// Gets/sets <c>AL_BUFFER</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </para>
/// <para>
/// Specifies the buffer to provide sound samples for a source.
/// </para>
/// <para>
/// Type <c>ALuint</c>; default <c>AL_NONE</c>.
/// </para>
/// </remarks>
public AlBuffer Buffer
{
get => new AlBuffer((uint)Al.GetSourcei(Name, AL_BUFFER));
set => Al.PInvoke.Sourcei(Name, AL_BUFFER, (int)value.Name);
}
/// <summary>
/// Source state (query only).
/// </summary>
/// <remarks>
/// <para>
/// Gets <c>AL_SOURCE_STATE</c> (<c>alGetSourcei</c>).
/// </para>
/// <para>
/// Type <c>ALenum</c>.
/// </para>
/// </remarks>
public AlSourceState State
{
get => (AlSourceState)Al.GetSourcei(Name, AL_SOURCE_STATE);
}
/// <summary>
/// Source type (query only).
/// </summary>
/// <remarks>
/// <para>
/// Gets <c>AL_SOURCE_TYPE</c> (<c>alGetSourcei</c>).
/// </para>
/// <para>
/// A Source is Static if a Buffer has been attached using AL_BUFFER.
/// </para>
/// <para>
/// A Source is Streaming if one or more Buffers have been attached using alSourceQueueBuffers.
/// </para>
/// <para>
/// A Source is Undetermined when it has the NULL buffer attached using AL_BUFFER.
/// </para>
/// <para>
/// Type <c>ALenum</c>.
/// </para>
/// </remarks>
public AlSourceType Type
{
get => (AlSourceType)Al.GetSourcei(Name, AL_SOURCE_TYPE);
}
/// <summary>
/// Source Buffer Queue size (query only).
/// </summary>
/// <remarks>
/// <para>
/// Gets <c>AL_BUFFERS_QUEUED</c> (<c>alGetSourcei</c>).
/// </para>
/// <para>
/// The number of buffers queued using alSourceQueueBuffers, minus the buffers removed with
/// alSourceUnqueueBuffers.
/// </para>
/// <para>
/// Type <c>ALint</c>.
/// </para>
/// </remarks>
public int BuffersQueued
{
get => Al.GetSourcei(Name, AL_BUFFERS_QUEUED);
}
/// <summary>
/// Source Buffer Queue processed count (query only).
/// </summary>
/// <remarks>
/// <para>
/// Gets <c>AL_BUFFERS_PROCESSED</c> (<c>alGetSourcei</c>).
/// </para>
/// <para>
/// The number of queued buffers that have been fully processed, and can be removed with
/// alSourceUnqueueBuffers.
/// </para>
/// <para>
/// Looping sources will never fully process buffers because they will be set to play again for when the
/// source loops.
/// </para>
/// <para>
/// Type <c>ALint</c>.
/// </para>
/// </remarks>
public int BuffersProcessed
{
get => Al.GetSourcei(Name, AL_BUFFERS_PROCESSED);
}
/// <summary>
/// Sets <c>AL_DIRECT_FILTER</c> (<c>alSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALuint</c>; default <c>AL_FILTER_NULL</c>.
/// </para>
/// <para>
/// Set-only, as in the EFX spec: assignment copies the filter's parameters into the source, and native OpenAL keeps no record of which filter object they came from.
/// </para>
/// </remarks>
public AlFilter DirectFilter
{
set => Al.PInvoke.Sourcei(Name, AL_DIRECT_FILTER, (int)value.Name);
}
/// <summary>
/// Gets/sets <c>AL_AIR_ABSORPTION_FACTOR</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALuint</c>; range 0 to 10; default 0.
/// </para>
/// </remarks>
public float AirAbsorptionFactor
{
get => Al.GetSourcef(Name, AL_AIR_ABSORPTION_FACTOR);
set => Al.PInvoke.Sourcef(Name, AL_AIR_ABSORPTION_FACTOR, value);
}
/// <summary>
/// Gets/sets <c>AL_ROOM_ROLLOFF_FACTOR</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALuint</c>; range 0 to 10; default 0.
/// </para>
/// </remarks>
public float RoomRolloffFactor
{
get => Al.GetSourcef(Name, AL_ROOM_ROLLOFF_FACTOR);
set => Al.PInvoke.Sourcef(Name, AL_ROOM_ROLLOFF_FACTOR, value);
}
/// <summary>
/// Gets/sets <c>AL_CONE_OUTER_GAINHF</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>; range 0.0 to 1.0; default 1.0.
/// </para>
/// </remarks>
public float ConeOuterGainHf
{
get => Al.GetSourcef(Name, AL_CONE_OUTER_GAINHF);
set => Al.PInvoke.Sourcef(Name, AL_CONE_OUTER_GAINHF, value);
}
/// <summary>
/// Gets/sets <c>AL_DIRECT_FILTER_GAINHF_AUTO</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
/// </para>
/// </remarks>
public bool DirectFilterGainHfAuto
{
get => Al.GetSourcei(Name, AL_DIRECT_FILTER_GAINHF_AUTO) != AL_FALSE;
set => Al.PInvoke.Sourcei(Name, AL_DIRECT_FILTER_GAINHF_AUTO, value ? AL_TRUE : AL_FALSE);
}
/// <summary>
/// Gets/sets <c>AL_AUXILIARY_SEND_FILTER_GAIN_AUTO</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
/// </para>
/// </remarks>
public bool AuxiliarySendFilterGainAuto
{
get => Al.GetSourcei(Name, AL_AUXILIARY_SEND_FILTER_GAIN_AUTO) != AL_FALSE;
set => Al.PInvoke.Sourcei(Name, AL_AUXILIARY_SEND_FILTER_GAIN_AUTO, value ? AL_TRUE : AL_FALSE);
}
/// <summary>
/// Gets/sets <c>AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
/// </para>
/// </remarks>
public bool AuxiliarySendFilterGainHfAuto
{
get => Al.GetSourcei(Name, AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO) != AL_FALSE;
set => Al.PInvoke.Sourcei(Name, AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO, value ? AL_TRUE : AL_FALSE);
}
/// <summary>
/// Gets/sets <c>AL_SOURCE_RADIUS</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>.
/// </para>
/// </remarks>
public float SourceRadius
{
get => Al.GetSourcef(Name, AL_SOURCE_RADIUS);
set => Al.PInvoke.Sourcef(Name, AL_SOURCE_RADIUS, value);
}
/// <summary>
/// Gets/sets <c>AL_SOURCE_DISTANCE_MODEL</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
public AlDistanceModel DistanceModel
{
get => (AlDistanceModel)Al.GetSourcei(Name, AL_SOURCE_DISTANCE_MODEL);
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_DISTANCE_MODEL, (int)value);
}
/// <summary>
/// Gets/sets <c>AL_DIRECT_CHANNELS_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALenum</c>; default <c>AL_FALSE</c>.
/// </para>
/// </remarks>
public AlDirectChannelsMode DirectChannels
{
get => (AlDirectChannelsMode)Al.GetSourcei(Name, AL_DIRECT_CHANNELS_SOFT);
set => Al.PInvoke.Sourcei(Name, AL_DIRECT_CHANNELS_SOFT, (int)value);
}
/// <summary>
/// Gets/sets <c>AL_SOURCE_SPATIALIZE_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALenum</c>; default <c>AL_AUTO_SOFT</c>.
/// </para>
/// </remarks>
public AlSpatializeMode Spatialize
{
get => (AlSpatializeMode)Al.GetSourcei(Name, AL_SOURCE_SPATIALIZE_SOFT);
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_SPATIALIZE_SOFT, (int)value);
}
/// <summary>
/// Gets/sets <c>AL_SOURCE_RESAMPLER_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALint</c>.
/// </para>
/// </remarks>
public int Resampler
{
get => Al.GetSourcei(Name, AL_SOURCE_RESAMPLER_SOFT);
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_RESAMPLER_SOFT, value);
}
/// <summary>
/// Gets/sets <c>AL_STEREO_MODE_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALenum</c>; default <c>AL_NORMAL_SOFT</c>.
/// </para>
/// </remarks>
public AlStereoMode StereoMode
{
get => (AlStereoMode)Al.GetSourcei(Name, AL_STEREO_MODE_SOFT);
set => Al.PInvoke.Sourcei(Name, AL_STEREO_MODE_SOFT, (int)value);
}
/// <summary>
/// Gets/sets <c>AL_SUPER_STEREO_WIDTH_SOFT</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>; range 0.0 to 1.0.
/// </para>
/// </remarks>
public float SuperStereoWidth
{
get => Al.GetSourcef(Name, AL_SUPER_STEREO_WIDTH_SOFT);
set => Al.PInvoke.Sourcef(Name, AL_SUPER_STEREO_WIDTH_SOFT, value);
}
/// <summary>
/// Gets/sets <c>AL_STEREO_ANGLES</c> (<c>alSourcefv</c>/<c>alGetSourcefv</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>.
/// </para>
/// </remarks>
public float2 StereoAngles
{
get => Al.GetSourcefv2(Name, AL_STEREO_ANGLES);
set => Al.SetSourcefv2(Name, AL_STEREO_ANGLES, value);
}
/// <summary>
/// Gets <c>AL_BYTE_LENGTH_SOFT</c> (<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALint</c>.
/// </para>
/// </remarks>
public int ByteLength
{
get => Al.GetSourcei(Name, AL_BYTE_LENGTH_SOFT);
}
/// <summary>
/// Gets <c>AL_SAMPLE_LENGTH_SOFT</c> (<c>alGetSourcei</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALint</c>.
/// </para>
/// </remarks>
public int SampleLength
{
get => Al.GetSourcei(Name, AL_SAMPLE_LENGTH_SOFT);
}
/// <summary>
/// Gets <c>AL_SEC_LENGTH_SOFT</c> (<c>alGetSourcef</c>).
/// </summary>
/// <remarks>
/// <para>
/// Type <c>ALfloat</c>.
/// </para>
/// </remarks>
public float SecLength
{
get => Al.GetSourcef(Name, AL_SEC_LENGTH_SOFT);
}
}
}

View file

@ -0,0 +1,29 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public readonly unsafe partial struct AlSource
{
/// <summary>
/// Pauses playback of the source.
/// </summary>
public void Pause() => Al.PInvoke.SourcePause(Name);
/// <summary>
/// Starts or resumes playback of the source.
/// </summary>
public void Play() => Al.PInvoke.SourcePlay(Name);
/// <summary>
/// Rewinds the source to the start of its buffer.
/// </summary>
public void Rewind() => Al.PInvoke.SourceRewind(Name);
/// <summary>
/// Stops playback of the source.
/// </summary>
public void Stop() => Al.PInvoke.SourceStop(Name);
}
}

View file

@ -0,0 +1,100 @@
// <auto-generated/>
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
using static Brutal.OpenAlApi.Al.Constants;
namespace Brutal.OpenAlApi
{
/// <summary>
/// The typed parameter surface of an <c>AL_EFFECT_AUTOWAH</c> effect (see <see cref="AlEffect"/>); requires <c>ALC_EXT_EFX</c>.
/// </summary>
public unsafe readonly partial struct AutowahEffect
{
/// <summary>
/// The underlying effect handle.
/// </summary>
public readonly AlEffect Effect;
/// <summary>
/// Wraps an effect handle without validating its type; prefer the checked conversion.
/// </summary>
public AutowahEffect(AlEffect effect) => Effect = effect;
/// <summary>
/// The wrapper converts freely to its underlying handle.
/// </summary>
public static implicit operator AlEffect(AutowahEffect effect) => effect.Effect;
/// <summary>
/// Converts a raw handle to the typed wrapper, checking <see cref="AlEffect.Type"/>.
/// </summary>
/// <exception cref="InvalidCastException">
/// The effect's type is not <see cref="AlEffectType.Autowah"/>.</exception>
public static explicit operator AutowahEffect(AlEffect effect) =>
effect.Type == AlEffectType.Autowah
? new AutowahEffect(effect)
: throw new InvalidCastException($"Effect {effect.Name} has type {effect.Type}, not Autowah.");
/// <summary>
/// Deletes the underlying effect (<see cref="AlEffect.Delete"/>).
/// </summary>
public void Delete() => Effect.Delete();
/// <summary>
/// Gets/sets <c>AL_AUTOWAH_ATTACK_TIME</c>.
/// </summary>
/// <remarks>
/// <para>
/// range 0.0001f to 1.0f; default 0.06f.
/// </para>
/// </remarks>
public float AttackTime
{
get => Al.GetEffectf(Effect.Name, AL_AUTOWAH_ATTACK_TIME);
set => Al.PInvoke.Effectf(Effect.Name, AL_AUTOWAH_ATTACK_TIME, value);
}
/// <summary>
/// Gets/sets <c>AL_AUTOWAH_RELEASE_TIME</c>.
/// </summary>
/// <remarks>
/// <para>
/// range 0.0001f to 1.0f; default 0.06f.
/// </para>
/// </remarks>
public float ReleaseTime
{
get => Al.GetEffectf(Effect.Name, AL_AUTOWAH_RELEASE_TIME);
set => Al.PInvoke.Effectf(Effect.Name, AL_AUTOWAH_RELEASE_TIME, value);
}
/// <summary>
/// Gets/sets <c>AL_AUTOWAH_RESONANCE</c>.
/// </summary>
/// <remarks>
/// <para>
/// range 2.0f to 1000.0f; default 1000.0f.
/// </para>
/// </remarks>
public float Resonance
{
get => Al.GetEffectf(Effect.Name, AL_AUTOWAH_RESONANCE);
set => Al.PInvoke.Effectf(Effect.Name, AL_AUTOWAH_RESONANCE, value);
}
/// <summary>
/// Gets/sets <c>AL_AUTOWAH_PEAK_GAIN</c>.
/// </summary>
/// <remarks>
/// <para>
/// range 0.00003f to 31621.0f; default 11.22f.
/// </para>
/// </remarks>
public float PeakGain
{
get => Al.GetEffectf(Effect.Name, AL_AUTOWAH_PEAK_GAIN);
set => Al.PInvoke.Effectf(Effect.Name, AL_AUTOWAH_PEAK_GAIN, value);
}
}
}

Some files were not shown because too many files have changed in this diff Show more