Skip to content

Commit

Permalink
NumberOfPatches does not use scannerTools field #2
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiKh committed Aug 31, 2020
1 parent 1901e61 commit 9e272b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CarefulAudioRepair/Data/Channel - Copy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace CarefulAudioRepair.Data
{
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading.Tasks;
Expand All @@ -17,6 +18,7 @@ internal class MemoryEfficientChannel : IDisposable, IChannel
{
private readonly ImmutableArray<double> inputImmutable;
private readonly IAudioProcessingSettings settings;
private readonly List<AbstractPatch> patchCollection;

// TODO: remove this field as it requires too much memory
private ScannerTools scannerTools;
Expand Down Expand Up @@ -63,7 +65,7 @@ public MemoryEfficientChannel(ImmutableArray<double> inputSamples, IAudioProcess
/// <summary>
/// Gets number of patches.
/// </summary>
public int NumberOfPatches => this.scannerTools.PatchCollection.Count;
public int NumberOfPatches => this.patchCollection.Count;

/// <summary>
/// Asynchronously scans audio for damaged samples and repairs them.
Expand Down

0 comments on commit 9e272b8

Please sign in to comment.