Skip to content

Commit

Permalink
Merge pull request #32 from glaurent/InputSignalTrackerBug31
Browse files Browse the repository at this point in the history
Fix for Input signal tracker bug31
  • Loading branch information
vadymmarkov authored Sep 4, 2016
2 parents aa998ba + 474584b commit 80e8172
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Source/SignalTracking/Units/InputSignalTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ public class InputSignalTracker: SignalTracker {
}

public func stop() {
audioEngine.stop()
audioEngine.reset()
audioEngine = nil
captureSession.stopRunning()
if audioEngine != nil {
audioEngine.stop()
audioEngine.reset()
audioEngine = nil
captureSession.stopRunning()
}
}

func setupAudio() {
Expand Down

0 comments on commit 80e8172

Please sign in to comment.