     }
     
     /// Replace the current audio file with a new audio file
+    ///
+    /// - parameter newFile: Path to the new audiofile
     public func replaceFile(newFile: String) {
         internalFile = newFile
         reloadFile()

/// Simple audio playback class
public class AKAudioPlayer: AKNode, AKToggleable {
    
    private var audioFileBuffer: AVAudioPCMBuffer
    private var internalPlayer: AVAudioPlayerNode
    private var audioFile: AVAudioFile
    
    private var internalFile: String
    private var sampleRate: Double = 1.0
    private var totalFrameCount: Int64
    private var initialFrameCount: Int64 = -1
    private var skippedToTime: Double
    
    /// Boolean indicating whether or not to loop the playback
    public var looping = false

        let frameCount = UInt32(totalFrameCount - startingFrame)
        internalPlayer.prepareWithFrameCount(frameCount)
        internalPlayer.scheduleSegment(
            audioFile!,
            startingFrame: startingFrame,
            frameCount: frameCount,
            atTime: nil,
