Skip to content

Instantly share code, notes, and snippets.

@jeiting
Forked from alexey-dc/AHUSound
Created April 4, 2013 20:54
Show Gist options
  • Save jeiting/5314272 to your computer and use it in GitHub Desktop.
Save jeiting/5314272 to your computer and use it in GitHub Desktop.
-- cached, sound played based on the name for the sound effect, rather than the file name
SoundManager.load("dropped_bass", "assets/droppbass.ogg")
SoundManager.playSound("explosion") -- Sounds that aren't preloaded are loaded automatically
SoundManager.playMusic("dropped_bass")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment