     
     public func play()
     {
-        self.session.setCategory(AVAudioSessionCategoryPlayback, error: nil)
+        session.setCategory(AVAudioSessionCategoryPlayback, error: nil)
 
         let player = AVAudioPlayer(contentsOfURL: url, error: nil)
         player.play()


    public func record()
    {
        self.session.setCategory(AVAudioSessionCategoryRecord, error: nil)

        recorder.prepareToRecord()



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