Added sound effect on login and on error

This commit is contained in:
AlexKvazos
2015-04-29 14:44:39 -05:00
parent efd412d534
commit 32126cd53d
6 changed files with 26 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
module.exports = function() {
var connected = "connected";
var error = "error";
createjs.Sound.registerSound("/sounds/connected.mp3", connected);
createjs.Sound.registerSound("/sounds/error.mp3", error);
return {
connected: function() {
createjs.Sound.play(connected);
},
error: function() {
createjs.Sound.play(error);
}
};
};