mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
128 lines
4.5 KiB
C#
128 lines
4.5 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using static Brutal.OpenAlApi.Al.Constants;
|
|
|
|
namespace Brutal.OpenAlApi
|
|
{
|
|
/// <summary>
|
|
/// The typed parameter surface of an <c>AL_EFFECT_VOCAL_MORPHER</c> effect (see <see cref="AlEffect"/>); requires <c>ALC_EXT_EFX</c>.
|
|
/// </summary>
|
|
public unsafe readonly partial struct VocalMorpherEffect
|
|
{
|
|
/// <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 VocalMorpherEffect(AlEffect effect) => Effect = effect;
|
|
|
|
/// <summary>
|
|
/// The wrapper converts freely to its underlying handle.
|
|
/// </summary>
|
|
public static implicit operator AlEffect(VocalMorpherEffect 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.VocalMorpher"/>.</exception>
|
|
public static explicit operator VocalMorpherEffect(AlEffect effect) =>
|
|
effect.Type == AlEffectType.VocalMorpher
|
|
? new VocalMorpherEffect(effect)
|
|
: throw new InvalidCastException($"Effect {effect.Name} has type {effect.Type}, not VocalMorpher.");
|
|
|
|
/// <summary>
|
|
/// Deletes the underlying effect (<see cref="AlEffect.Delete"/>).
|
|
/// </summary>
|
|
public void Delete() => Effect.Delete();
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_VOCAL_MORPHER_PHONEMEA</c>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// range 0 to 29; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlVocalMorpherPhoneme PhonemeA
|
|
{
|
|
get => (AlVocalMorpherPhoneme)Al.GetEffecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEA);
|
|
set => Al.PInvoke.Effecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEA, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING</c>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// range -24 to 24; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int PhonemeACoarseTuning
|
|
{
|
|
get => Al.GetEffecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING);
|
|
set => Al.PInvoke.Effecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_VOCAL_MORPHER_PHONEMEB</c>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// range 0 to 29; default 10.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlVocalMorpherPhoneme PhonemeB
|
|
{
|
|
get => (AlVocalMorpherPhoneme)Al.GetEffecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEB);
|
|
set => Al.PInvoke.Effecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEB, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING</c>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// range -24 to 24; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int PhonemeBCoarseTuning
|
|
{
|
|
get => Al.GetEffecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING);
|
|
set => Al.PInvoke.Effecti(Effect.Name, AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_VOCAL_MORPHER_WAVEFORM</c>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// range 0 to 2; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlVocalMorpherWaveform Waveform
|
|
{
|
|
get => (AlVocalMorpherWaveform)Al.GetEffecti(Effect.Name, AL_VOCAL_MORPHER_WAVEFORM);
|
|
set => Al.PInvoke.Effecti(Effect.Name, AL_VOCAL_MORPHER_WAVEFORM, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_VOCAL_MORPHER_RATE</c>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// range 0.0f to 10.0f; default 1.41f.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float Rate
|
|
{
|
|
get => Al.GetEffectf(Effect.Name, AL_VOCAL_MORPHER_RATE);
|
|
set => Al.PInvoke.Effectf(Effect.Name, AL_VOCAL_MORPHER_RATE, value);
|
|
}
|
|
}
|
|
}
|