From 4048bc8baeaef87abfd312e76d45158b8d9008ca Mon Sep 17 00:00:00 2001 From: Adrian Edwards Date: Fri, 8 Apr 2016 10:06:23 -0700 Subject: [PATCH] fixed bug where sound would play twice per click... --- MiamiSunglasses/ViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiamiSunglasses/ViewController.swift b/MiamiSunglasses/ViewController.swift index 80f2f30..1f20d2d 100644 --- a/MiamiSunglasses/ViewController.swift +++ b/MiamiSunglasses/ViewController.swift @@ -30,7 +30,7 @@ class ViewController: UIViewController, AVAudioPlayerDelegate { yeah.delegate = self; //allows audioPlayerDidFinishPlaying to be called } catch _ { return } - yeah.numberOfLoops = 1 + yeah.numberOfLoops = 0 //yeah.volume = 1.0 //interesting... maybe i could add a volume slider later... yeah.prepareToPlay()