     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

        if internalPlayer.playing {
            if let nodeTime = internalPlayer.lastRenderTime,
                let playerTime = internalPlayer.playerTimeForNodeTime(nodeTime) {
                return Double( Double( playerTime.sampleTime ) / playerTime.sampleRate )
            }
        }
        return 0.0
    }
    
    /// Play the file back from a certain time (non-looping)

        // added for currentTime calculation later on
        sampleRate = audioFile.fileFormat.sampleRate
        totalFrameCount = Int64(audioFrameCount)
        skippedToTime = 0
        
        internalPlayer = AVAudioPlayerNode()
        super.init()
