     open func reset() throws {
 
         // Stop recording
-        if recording {
+        if isRecording == true {
             stop()
         }
 

        }

        let recordingBufferLength: AVAudioFrameCount = AKSettings.recordingBufferLength.samplesCount
        recording = true

        AKLog("AKNodeRecorder: recording")
        node.avAudioNode.installTap(


    /// Start recording
    open func record() throws {
        if isRecording == true {
            AKLog("AKNodeRecorder Warning: already recording !")
            return
        }
