Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
fixed bug where sound would play twice per click...
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Edwards authored and Adrian Edwards committed Apr 8, 2016
1 parent cdd318b commit 4048bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MiamiSunglasses/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4048bc8

Please sign in to comment.