Skip to content

Commit

Permalink
Merge pull request #55 from makuearth/master
Browse files Browse the repository at this point in the history
Fix to avoid calling start twice.
  • Loading branch information
vadymmarkov authored Jan 4, 2018
2 parents 94ac78d + 8eb58ca commit aee0afb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/SignalTracking/Units/InputSignalTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ final class InputSignalTracker: SignalTracker {
}
}

captureSession.startRunning()
audioEngine?.prepare()
try audioEngine?.start()
captureSession.startRunning()
guard captureSession.isRunning == true else {
throw InputSignalTrackerError.inputNodeMissing
}
}

func stop() {
Expand Down

0 comments on commit aee0afb

Please sign in to comment.