Skip to content

Instantly share code, notes, and snippets.

@shawngrimes
Created October 20, 2012 20:31
Show Gist options
  • Save shawngrimes/3924693 to your computer and use it in GitHub Desktop.
Save shawngrimes/3924693 to your computer and use it in GitHub Desktop.
Corona SDK: Adding Sound Effects
--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