 // MARK: - InputDeviceDelegate
 
 extension ViewController: InputDeviceDelegate {
-
     func didSelectInputDevice(_ device: AKDevice) {
         do {
             try mic.setDevice(device)

    override func viewDidLoad() {
        super.viewDidLoad()

        AKSettings.sampleRate = AKManager.engine.inputNode.inputFormat(forBus: 0).sampleRate
        AKSettings.audioInputEnabled = true
        mic = AKMicrophone()
        tracker = AKFrequencyTracker(mic)

            AKLog("Error setting input device")
        }
    }
}
