         recorder.record()
     }
     
-    func stop()
+    public func stop()
     {
         recorder.stop()
     }
     
-    func play()
+    public func play()
     {
         self.session.setCategory(AVAudioSessionCategoryPlayback, error: nil)
         

        AVSampleRateKey: 44100.0
    ]
    
    init(to: NSString, on: AVAudioRecorderDelegate)
    {
        self.delegate = on
        self.session = AVAudioSession.sharedInstance()
        self.url = NSURL(fileURLWithPath: directory.stringByAppendingPathComponent(to))
    }
    
    func record()
    {
        self.session.setCategory(AVAudioSessionCategoryRecord, error: nil)
        

import AVFoundation

public class Recording {
    var recorder: AVAudioRecorder!
    var player: AVAudioPlayer!
    var session: AVAudioSession!
