Slider time change function
@IBAction func SliderChange(sender: UISlider) { audioPlayer.stop() var newTime = audioPlayerBar.value audioPlayer.currentTime = NSTimeInterval(newTime) audioPlayer.play() }