mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
114
Brutal.OpenAl/Generated/Al/Efx/DistortionEffect.gen.cs
Normal file
114
Brutal.OpenAl/Generated/Al/Efx/DistortionEffect.gen.cs
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
// <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_DISTORTION</c> effect (see <see cref="AlEffect"/>); requires <c>ALC_EXT_EFX</c>.
|
||||
/// </summary>
|
||||
public unsafe readonly partial struct DistortionEffect
|
||||
{
|
||||
/// <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 DistortionEffect(AlEffect effect) => Effect = effect;
|
||||
|
||||
/// <summary>
|
||||
/// The wrapper converts freely to its underlying handle.
|
||||
/// </summary>
|
||||
public static implicit operator AlEffect(DistortionEffect 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.Distortion"/>.</exception>
|
||||
public static explicit operator DistortionEffect(AlEffect effect) =>
|
||||
effect.Type == AlEffectType.Distortion
|
||||
? new DistortionEffect(effect)
|
||||
: throw new InvalidCastException($"Effect {effect.Name} has type {effect.Type}, not Distortion.");
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the underlying effect (<see cref="AlEffect.Delete"/>).
|
||||
/// </summary>
|
||||
public void Delete() => Effect.Delete();
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets <c>AL_DISTORTION_EDGE</c>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// range 0.0f to 1.0f; default 0.2f.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float Edge
|
||||
{
|
||||
get => Al.GetEffectf(Effect.Name, AL_DISTORTION_EDGE);
|
||||
set => Al.PInvoke.Effectf(Effect.Name, AL_DISTORTION_EDGE, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets <c>AL_DISTORTION_GAIN</c>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// range 0.01f to 1.0f; default 0.05f.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float Gain
|
||||
{
|
||||
get => Al.GetEffectf(Effect.Name, AL_DISTORTION_GAIN);
|
||||
set => Al.PInvoke.Effectf(Effect.Name, AL_DISTORTION_GAIN, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets <c>AL_DISTORTION_LOWPASS_CUTOFF</c>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// range 80.0f to 24000.0f; default 8000.0f.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float LowpassCutoff
|
||||
{
|
||||
get => Al.GetEffectf(Effect.Name, AL_DISTORTION_LOWPASS_CUTOFF);
|
||||
set => Al.PInvoke.Effectf(Effect.Name, AL_DISTORTION_LOWPASS_CUTOFF, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets <c>AL_DISTORTION_EQCENTER</c>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// range 80.0f to 24000.0f; default 3600.0f.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float EqCenter
|
||||
{
|
||||
get => Al.GetEffectf(Effect.Name, AL_DISTORTION_EQCENTER);
|
||||
set => Al.PInvoke.Effectf(Effect.Name, AL_DISTORTION_EQCENTER, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets <c>AL_DISTORTION_EQBANDWIDTH</c>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// range 80.0f to 24000.0f; default 3600.0f.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float EqBandwidth
|
||||
{
|
||||
get => Al.GetEffectf(Effect.Name, AL_DISTORTION_EQBANDWIDTH);
|
||||
set => Al.PInvoke.Effectf(Effect.Name, AL_DISTORTION_EQBANDWIDTH, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue