// // 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_RING_MODULATOR effect (see ); requires ALC_EXT_EFX. /// public unsafe readonly partial struct RingModulatorEffect { /// /// The underlying effect handle. /// public readonly AlEffect Effect; /// /// Wraps an effect handle without validating its type; prefer the checked conversion. /// public RingModulatorEffect(AlEffect effect) => Effect = effect; /// /// The wrapper converts freely to its underlying handle. /// public static implicit operator AlEffect(RingModulatorEffect effect) => effect.Effect; /// /// Converts a raw handle to the typed wrapper, checking . /// /// /// The effect's type is not . public static explicit operator RingModulatorEffect(AlEffect effect) => effect.Type == AlEffectType.RingModulator ? new RingModulatorEffect(effect) : throw new InvalidCastException($"Effect {effect.Name} has type {effect.Type}, not RingModulator."); /// /// Deletes the underlying effect (). /// public void Delete() => Effect.Delete(); /// /// Gets/sets AL_RING_MODULATOR_FREQUENCY. /// /// /// /// range 0.0f to 8000.0f; default 440.0f. /// /// public float Frequency { get => Al.GetEffectf(Effect.Name, AL_RING_MODULATOR_FREQUENCY); set => Al.PInvoke.Effectf(Effect.Name, AL_RING_MODULATOR_FREQUENCY, value); } /// /// Gets/sets AL_RING_MODULATOR_HIGHPASS_CUTOFF. /// /// /// /// range 0.0f to 24000.0f; default 800.0f. /// /// public float HighpassCutoff { get => Al.GetEffectf(Effect.Name, AL_RING_MODULATOR_HIGHPASS_CUTOFF); set => Al.PInvoke.Effectf(Effect.Name, AL_RING_MODULATOR_HIGHPASS_CUTOFF, value); } /// /// Gets/sets AL_RING_MODULATOR_WAVEFORM. /// /// /// /// range 0 to 2; default 0. /// /// public AlRingModulatorWaveform Waveform { get => (AlRingModulatorWaveform)Al.GetEffecti(Effect.Name, AL_RING_MODULATOR_WAVEFORM); set => Al.PInvoke.Effecti(Effect.Name, AL_RING_MODULATOR_WAVEFORM, (int)value); } } }