From c1985ddefcc37dfddbe8630de7f8834863327782 Mon Sep 17 00:00:00 2001 From: Clement Gournay Date: Sat, 18 Jul 2015 11:57:56 +0900 Subject: [PATCH] Sound gestion improved --- src/js/assets.js | 4 ++- src/js/loader.js | 10 +++--- src/js/loadsong.js | 12 ++++--- src/js/songselect.js | 6 ++-- src/js/soundsystem.js | 74 +++++++++++++++++-------------------------- src/js/titlescreen.js | 2 +- 6 files changed, 50 insertions(+), 58 deletions(-) diff --git a/src/js/assets.js b/src/js/assets.js index 85c3cad..266fba4 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -44,6 +44,8 @@ var assets = { fonts: new Array( 'Kozuka', 'TnT' - ) + ), + + sounds: {} }; \ No newline at end of file diff --git a/src/js/loader.js b/src/js/loader.js index 4b2ed13..82c6f87 100644 --- a/src/js/loader.js +++ b/src/js/loader.js @@ -24,11 +24,13 @@ function Loader(){ assets.audio.forEach(function(name){ var id = name.substr(0, name.length-4); - var audio = $("