Skip to content

Commit ba3ca8b

Browse files
committed
Update name of method to plot waveform graph.
1 parent ad1b5ce commit ba3ca8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/FDWaveformView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ final public class FDWaveformRenderOperation: Operation {
648648
let image: UIImage? = {
649649
guard
650650
let (samples, sampleMax) = sliceAsset(withRange: sampleRange, andDownsampleTo: targetSamples),
651-
let image = plotLogGraph(samples, maximumValue: sampleMax, zeroValue: format.type.floorValue)
651+
let image = plotWaveformGraph(samples, maximumValue: sampleMax, zeroValue: format.type.floorValue)
652652
else { return nil }
653653

654654
return image
@@ -798,7 +798,7 @@ final public class FDWaveformRenderOperation: Operation {
798798
}
799799

800800
// TODO: switch to a synchronous function that paints onto a given context? (for issue #2)
801-
func plotLogGraph(_ samples: [CGFloat], maximumValue max: CGFloat, zeroValue min: CGFloat) -> UIImage? {
801+
func plotWaveformGraph(_ samples: [CGFloat], maximumValue max: CGFloat, zeroValue min: CGFloat) -> UIImage? {
802802
guard !isCancelled else { return nil }
803803

804804
let imageSize = CGSize(width: CGFloat(samples.count) / format.scale,

0 commit comments

Comments
 (0)