From fce1276e790f08ace73de562ad7d7bec9c835982 Mon Sep 17 00:00:00 2001 From: Cyro Date: Wed, 11 Sep 2024 22:26:40 -0500 Subject: [PATCH] fix(zita)#: Return generic T of IZitaFilter for type clarity --- SharpPipe/Helpers/ParameterHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SharpPipe/Helpers/ParameterHelper.cs b/SharpPipe/Helpers/ParameterHelper.cs index d2d80bf..dffe0c3 100644 --- a/SharpPipe/Helpers/ParameterHelper.cs +++ b/SharpPipe/Helpers/ParameterHelper.cs @@ -10,7 +10,8 @@ public static class ParameterHelper /// /// This Zita filter /// The Zita filter to copy parameters from - public static IZitaFilter FromOther(this IZitaFilter zita, in IZitaFilter other) + public static T FromOther(this T zita, in IZitaFilter other) + where T : IZitaFilter { zita.InDelay = other.InDelay; zita.Crossover = other.Crossover;