I'm having trouble creating code that repeats the sound in audio url again and again. Now he just plays it once, when the view opens, and then stops.
import UIKit import AVFoundation class aboutViewController: UIViewController { var audioUrl = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("chimes", ofType: "wav")!) var audioEngine = AVAudioEngine() var myPlayer = AVAudioPlayerNode() override func viewDidLoad() { super.viewDidLoad()
Thanks!
source share