 
     public func record()
     {
-        self.session.setCategory(AVAudioSessionCategoryRecord, error: nil)
+        session.setCategory(AVAudioSessionCategoryRecord, error: nil)
 
         recorder.prepareToRecord()
 


    public init(to: NSString, on: RecorderDelegate, withMetering:Bool = false)
    {
        self.delegate = on
        self.metering = withMetering
        self.session  = AVAudioSession.sharedInstance()
        
        super.init()
        
        self.url = NSURL(fileURLWithPath: directory.stringByAppendingPathComponent(to))
    }
    
    public func prepare()

    
    public func play()
    {
        session.setCategory(AVAudioSessionCategoryPlayback, error: nil)

        let player = AVAudioPlayer(contentsOfURL: url, error: nil)
        player.play()
