Created
October 20, 2012 20:31
-
-
Save shawngrimes/3924693 to your computer and use it in GitHub Desktop.
Corona SDK: Adding Sound Effects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--load your sound effect near the beginning of your file | |
local mySoundEffect = audio.loadSound("mySound.mp3") | |
--To play the sound effect, call this whenever you want to play it | |
audio.play(mySoundEffect) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment