Skip to content

Commit

Permalink
fixing ugly variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Aug 27, 2021
1 parent 6a9511d commit 4c259fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/AudioKit/Internals/Utilities/AudioKitHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@ public extension DSPSplitComplex {
/// Initialize a DSPSplitComplex with repeating values for real and imaginary splits
///
/// - Parameters:
/// - repeating: value to set elements to
/// - initialValue: value to set elements to
/// - count: number of real and number of imaginary elements
init(repeating: Float, count: Int) {
let real = [Float](repeating: repeating, count: count)
init(repeating initialValue: Float, count: Int) {
let real = [Float](repeating: initialValue, count: count)
let realp = UnsafeMutablePointer<Float>.allocate(capacity: real.count)
realp.assign(from: real, count: real.count)

let imag = [Float](repeating: repeating, count: count)
let imag = [Float](repeating: initialValue, count: count)
let imagp = UnsafeMutablePointer<Float>.allocate(capacity: imag.count)
imagp.assign(from: imag, count: imag.count)

Expand Down

0 comments on commit 4c259fa

Please sign in to comment.