From 63a7d7512b9fdb9ba33db84fe5dbb25dd1c69c3c Mon Sep 17 00:00:00 2001 From: Dmitry Khrustalev Date: Mon, 31 Aug 2020 16:54:47 -0300 Subject: [PATCH] IChannel does not require Dispose() #2 --- CarefulAudioRepair/Data/Channel - Copy.cs | 2 ++ CarefulAudioRepair/Data/IChannel.cs | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CarefulAudioRepair/Data/Channel - Copy.cs b/CarefulAudioRepair/Data/Channel - Copy.cs index 54910ca..187bba1 100644 --- a/CarefulAudioRepair/Data/Channel - Copy.cs +++ b/CarefulAudioRepair/Data/Channel - Copy.cs @@ -84,6 +84,8 @@ public async Task ScanAsync( { this.RegisterPatch(patch); } + + this.patchCollection.AddRange(tools.PatchCollection.ToList()); } /// diff --git a/CarefulAudioRepair/Data/IChannel.cs b/CarefulAudioRepair/Data/IChannel.cs index df6bbb3..73a3bc5 100644 --- a/CarefulAudioRepair/Data/IChannel.cs +++ b/CarefulAudioRepair/Data/IChannel.cs @@ -12,8 +12,6 @@ internal interface IChannel bool IsPreprocessed { get; } int LengthSamples { get; } int NumberOfPatches { get; } - - void Dispose(); Patch[] GetAllPatches(); double[] GetInputRange(int start, int length); double GetInputSample(int position);