Skip to content

Commit

Permalink
fix(zita)#: Make sure to return the filter in case IZitaFilter is imp…
Browse files Browse the repository at this point in the history
…lemented as a value type
  • Loading branch information
BlueCyro committed Sep 12, 2024
1 parent 694a297 commit 9145806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SharpPipe/Helpers/ParameterHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class ParameterHelper
/// </summary>
/// <param name="zita">This Zita filter</param>
/// <param name="other">The Zita filter to copy parameters from</param>
public static void FromOther(this IZitaFilter zita, in IZitaFilter other)
public static IZitaFilter FromOther(this IZitaFilter zita, in IZitaFilter other)
{
zita.InDelay = other.InDelay;
zita.Crossover = other.Crossover;
Expand All @@ -23,5 +23,7 @@ public static void FromOther(this IZitaFilter zita, in IZitaFilter other)
zita.EQ2Level = other.EQ2Level;
zita.Mix = other.Mix;
zita.Level = other.Level;

return zita;
}
}

0 comments on commit 9145806

Please sign in to comment.