Skip to content

Commit

Permalink
Merge pull request #43 from glaurent/ios10_pitchengine_start_bugfix
Browse files Browse the repository at this point in the history
Fix PitchEngine start on iOS10 : the installTap() block would never be called
  • Loading branch information
vadymmarkov authored Nov 18, 2016
2 parents af70b02 + a6d4136 commit 2aab60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SignalTracking/Units/InputSignalTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class InputSignalTracker: SignalTracker {
throw InputSignalTrackerError.inputNodeMissing
}

let format = inputNode.inputFormat(forBus: bus)
let format = inputNode.outputFormat(forBus: bus)

inputNode.installTap(onBus: bus, bufferSize: bufferSize, format: format) { buffer, time in
guard let averageLevel = self.averageLevel else { return }
Expand Down

0 comments on commit 2aab60e

Please sign in to comment.