mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
287 lines
14 KiB
C#
287 lines
14 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.OpenAlApi.Params
|
|
{
|
|
/// <summary>
|
|
/// Keyed EFX effect parameter access (<c>alEffectf</c>/<c>alEffecti</c>/<c>alEffectfv</c>) as extension members on <see cref="AlEffect"/>, for generic or data-driven code. Typical code uses the typed wrappers (<see cref="ReverbEffect"/> and friends) instead.
|
|
/// </summary>
|
|
public static class EffectParams
|
|
{
|
|
extension(AlEffect effect)
|
|
{
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_REVERB</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlReverbf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_REVERB</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlReverbf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_REVERB</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlReverbi param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_REVERB</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlReverbi param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_EAXREVERB</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlEaxReverbf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_EAXREVERB</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlEaxReverbf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_EAXREVERB</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlEaxReverbi param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_EAXREVERB</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlEaxReverbi param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a <see cref="float3"/>-valued <c>AL_EFFECT_EAXREVERB</c> parameter (<c>alEffectfv</c>).
|
|
/// </summary>
|
|
public void Set(AlEaxReverb3f param, float3 value) => Al.SetEffectfv3(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a <see cref="float3"/>-valued <c>AL_EFFECT_EAXREVERB</c> parameter (<c>alGetEffectfv</c>).
|
|
/// </summary>
|
|
public float3 Get(AlEaxReverb3f param) => Al.GetEffectfv3(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_CHORUS</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlChorusf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_CHORUS</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlChorusf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_CHORUS</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlChorusi param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_CHORUS</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlChorusi param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_DISTORTION</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlDistortionf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_DISTORTION</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlDistortionf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_ECHO</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlEchof param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_ECHO</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlEchof param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_FLANGER</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlFlangerf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_FLANGER</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlFlangerf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_FLANGER</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlFlangeri param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_FLANGER</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlFlangeri param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_FREQUENCY_SHIFTER</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlFrequencyShifterf param, float value) =>
|
|
Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_FREQUENCY_SHIFTER</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlFrequencyShifterf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_FREQUENCY_SHIFTER</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlFrequencyShifteri param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_FREQUENCY_SHIFTER</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlFrequencyShifteri param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_VOCAL_MORPHER</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlVocalMorpherf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_VOCAL_MORPHER</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlVocalMorpherf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_VOCAL_MORPHER</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlVocalMorpheri param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_VOCAL_MORPHER</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlVocalMorpheri param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_PITCH_SHIFTER</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlPitchShifteri param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_PITCH_SHIFTER</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlPitchShifteri param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_RING_MODULATOR</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlRingModulatorf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_RING_MODULATOR</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlRingModulatorf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_RING_MODULATOR</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlRingModulatori param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_RING_MODULATOR</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlRingModulatori param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_AUTOWAH</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlAutowahf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_AUTOWAH</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlAutowahf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets an integer-valued <c>AL_EFFECT_COMPRESSOR</c> parameter (<c>alEffecti</c>).
|
|
/// </summary>
|
|
public void Set(AlCompressori param, int value) => Al.PInvoke.Effecti(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets an integer-valued <c>AL_EFFECT_COMPRESSOR</c> parameter (<c>alGetEffecti</c>).
|
|
/// </summary>
|
|
public int Get(AlCompressori param) => Al.GetEffecti(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_EQUALIZER</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlEqualizerf param, float value) => Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_EQUALIZER</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlEqualizerf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_DEDICATED_DIALOGUE</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlDedicatedDialoguef param, float value) =>
|
|
Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_DEDICATED_DIALOGUE</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlDedicatedDialoguef param) => Al.GetEffectf(effect.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT</c> parameter (<c>alEffectf</c>).
|
|
/// </summary>
|
|
public void Set(AlDedicatedLowFrequencyEffectf param, float value) =>
|
|
Al.PInvoke.Effectf(effect.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT</c> parameter (<c>alGetEffectf</c>).
|
|
/// </summary>
|
|
public float Get(AlDedicatedLowFrequencyEffectf param) => Al.GetEffectf(effect.Name, (int)param);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Keyed EFX filter parameter access (<c>alFilterf</c>/<c>alFilteri</c>) as extension members on <see cref="AlFilter"/>, for generic or data-driven code. Typical code uses the typed wrappers (<see cref="LowpassFilter"/> and friends) instead.
|
|
/// </summary>
|
|
public static class FilterParams
|
|
{
|
|
extension(AlFilter filter)
|
|
{
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_FILTER_LOWPASS</c> parameter (<c>alFilterf</c>).
|
|
/// </summary>
|
|
public void Set(AlLowpassf param, float value) => Al.PInvoke.Filterf(filter.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_FILTER_LOWPASS</c> parameter (<c>alGetFilterf</c>).
|
|
/// </summary>
|
|
public float Get(AlLowpassf param) => Al.GetFilterf(filter.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_FILTER_HIGHPASS</c> parameter (<c>alFilterf</c>).
|
|
/// </summary>
|
|
public void Set(AlHighpassf param, float value) => Al.PInvoke.Filterf(filter.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_FILTER_HIGHPASS</c> parameter (<c>alGetFilterf</c>).
|
|
/// </summary>
|
|
public float Get(AlHighpassf param) => Al.GetFilterf(filter.Name, (int)param);
|
|
|
|
/// <summary>
|
|
/// Sets a float-valued <c>AL_FILTER_BANDPASS</c> parameter (<c>alFilterf</c>).
|
|
/// </summary>
|
|
public void Set(AlBandpassf param, float value) => Al.PInvoke.Filterf(filter.Name, (int)param, value);
|
|
|
|
/// <summary>
|
|
/// Gets a float-valued <c>AL_FILTER_BANDPASS</c> parameter (<c>alGetFilterf</c>).
|
|
/// </summary>
|
|
public float Get(AlBandpassf param) => Al.GetFilterf(filter.Name, (int)param);
|
|
}
|
|
}
|
|
}
|