Skip to content

Commit

Permalink
Rename patchCollection to patches #2
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiKh committed Aug 31, 2020
1 parent b3494e1 commit 0b04ac6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CarefulAudioRepair/Data/Channel - Copy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class MemoryEfficientChannel : IChannel
{
private readonly ImmutableArray<double> inputImmutable;
private readonly IAudioProcessingSettings settings;
private readonly List<AbstractPatch> patchCollection = new List<AbstractPatch>();
private readonly List<AbstractPatch> patches = new List<AbstractPatch>();

/// <summary>
/// Initializes a new instance of the <see cref="Channel"/> class.
Expand Down Expand Up @@ -61,7 +61,7 @@ public MemoryEfficientChannel(ImmutableArray<double> inputSamples, IAudioProcess
/// <summary>
/// Gets number of patches.
/// </summary>
public int NumberOfPatches => this.patchCollection.Count;
public int NumberOfPatches => this.patches.Count;

/// <summary>
/// Asynchronously scans audio for damaged samples and repairs them.
Expand All @@ -85,7 +85,7 @@ public async Task ScanAsync(
this.RegisterPatch(patch);
}

this.patchCollection.AddRange(tools.PatchCollection.ToList());
this.patches.AddRange(tools.PatchCollection.ToList());
}

/// <summary>
Expand All @@ -94,7 +94,7 @@ public async Task ScanAsync(
/// <returns>Array of patches.</returns>
public Patch[] GetAllPatches()
{
var patchList = this.patchCollection.ToList();
var patchList = this.patches.ToList();
patchList.Sort();
return patchList.Select(p => p as Patch).ToArray();
}
Expand Down

0 comments on commit 0b04ac6

Please sign in to comment.