// // Generated by Brutal.OpenAl.Generate; do not edit by hand. #nullable enable using static Brutal.OpenAlApi.Al.Constants; namespace Brutal.OpenAlApi { /// /// The typed parameter surface of an AL_EFFECT_VOCAL_MORPHER effect (see ); requires ALC_EXT_EFX. /// public unsafe readonly partial struct VocalMorpherEffect { /// /// The underlying effect handle. /// public readonly AlEffect Effect; /// /// Wraps an effect handle without validating its type; prefer the checked conversion. /// public VocalMorpherEffect(AlEffect effect) => Effect = effect; /// /// The wrapper converts freely to its underlying handle. /// public static implicit operator AlEffect(VocalMorpherEffect effect) => effect.Effect; /// /// Converts a raw handle to the typed wrapper, checking . /// /// /// The effect's type is not . 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."); /// /// Deletes the underlying effect (). /// public void Delete() => Effect.Delete(); /// /// Gets/sets AL_VOCAL_MORPHER_PHONEMEA. /// /// /// /// range 0 to 29; default 0. /// /// 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); } /// /// Gets/sets AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING. /// /// /// /// range -24 to 24; default 0. /// /// 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); } /// /// Gets/sets AL_VOCAL_MORPHER_PHONEMEB. /// /// /// /// range 0 to 29; default 10. /// /// 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); } /// /// Gets/sets AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING. /// /// /// /// range -24 to 24; default 0. /// /// 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); } /// /// Gets/sets AL_VOCAL_MORPHER_WAVEFORM. /// /// /// /// range 0 to 2; default 0. /// /// 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); } /// /// Gets/sets AL_VOCAL_MORPHER_RATE. /// /// /// /// range 0.0f to 10.0f; default 1.41f. /// /// public float Rate { get => Al.GetEffectf(Effect.Name, AL_VOCAL_MORPHER_RATE); set => Al.PInvoke.Effectf(Effect.Name, AL_VOCAL_MORPHER_RATE, value); } } }