From bb7e45b9a3fa65e0670d237a66643a3f0efd1052 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 9 Feb 2024 13:53:33 -0800 Subject: [PATCH] expose Params on ReverbEffect --- src/Audio/ReverbEffect.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Audio/ReverbEffect.cs b/src/Audio/ReverbEffect.cs index 995c3c28..ed08a7b5 100644 --- a/src/Audio/ReverbEffect.cs +++ b/src/Audio/ReverbEffect.cs @@ -35,6 +35,8 @@ namespace MoonWorks.Audio RoomSize = FAudio.FAUDIOFX_REVERB_DEFAULT_ROOM_SIZE }; + public FAudio.FAudioFXReverbParameters Params { get; private set; } + public ReverbEffect(AudioDevice audioDevice, uint processingStage) : base(audioDevice, 1, audioDevice.DeviceDetails.OutputFormat.Format.nSamplesPerSec, processingStage) { /* Init reverb */ @@ -64,6 +66,8 @@ namespace MoonWorks.Audio public void SetParams(in FAudio.FAudioFXReverbParameters reverbParams) { + Params = reverbParams; + fixed (FAudio.FAudioFXReverbParameters* reverbParamsPtr = &reverbParams) { FAudio.FAudioVoice_SetEffectParameters(