 
 public class Recording : NSObject {
 
+  @objc public enum State: Int {
+    case None, Record, Play
+  }
+
   static var directory: String {
     return NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0]
   }
 
   public weak var delegate: RecorderDelegate?
   public private(set) var url: NSURL
+  public private(set) var state: State = .None
 
   let bitRate = 192000
   let sampleRate = 44100.0


    recorder?.stop()
    recorder = nil
  }

  public func play() throws {


    player = try AVAudioPlayer(contentsOfURL: url)
    player?.play()
    state = .Play
  }

  func updateMeter() {
