Phaser Sound Snippets

preload a sound
Description:loads a sound into the library
Example:game.load.audio('click', 'sounds/click.mp3');

add sound to game
Description:
Example:var click= game.add.audio('click');

play a sound
Description:plays a sound
Example:music.play();

set volume for a sound
Description:sets the volume for a sound, values are between 0 and 1
Example:music.volume=.5;

mute a sound
Description:turns off a sounds volume
Example:music.mute=true