 
                 self?.state = .FinishRecord
             }
-
-            /*
-            if YepAudioService.sharedManager.audioRecorder?.currentTime < YepConfig.AudioRecord.shortestDuration {
-
-                YepAudioService.sharedManager.endRecord()
-
-                YepAlert.alertSorry(message: NSLocalizedString("Voice recording time is too short!", comment: ""), inViewController: self, withDismissAction: { [weak self] in
-                    self?.state = .Default
-                })
-
-                return
-            }
-            
-            YepAudioService.sharedManager.endRecord()
-             */
 
         } else {
             proposeToAccess(.Microphone, agreed: { [weak self] in

                        self?.view.layoutIfNeeded()
                    }, completion: { _ in })
                })

                //displayLink?.invalidate()
            }
        }
    }

    //private var voiceFileURL: NSURL?
    private var audioPlayer: AVAudioPlayer?
    //private var displayLink: CADisplayLink?

    private var sampleValues: [CGFloat] = [] {
        didSet {

    }
}

