diff --git a/main.html b/main.html index a1ae229..39145e9 100644 --- a/main.html +++ b/main.html @@ -6,7 +6,7 @@ La Séparation - + @@ -14,7 +14,7 @@ - + diff --git a/scripts/libs/separation_toolkit/sound/sound_play.js b/scripts/libs/separation_toolkit/sound/sound_play.js index ec76497..1022f38 100644 --- a/scripts/libs/separation_toolkit/sound/sound_play.js +++ b/scripts/libs/separation_toolkit/sound/sound_play.js @@ -1,8 +1,8 @@ function sound_play(name) { -// if (appOnDevice()) { -// sounds[name].play(); -// } -// else { + if (appOnDevice()) { + sounds[name].play(); + } + else { document.getElementById(name).play(); -// } + } } diff --git a/scripts/main/init.js b/scripts/main/init.js index fb3bc68..ec20ff0 100644 --- a/scripts/main/init.js +++ b/scripts/main/init.js @@ -42,10 +42,10 @@ function initImages() { function initSounds() { if (appOnDevice()) { - sounds["cut"] = new Media("sounds/cut.wav"); - sounds["rub"] = new Media("sounds/rub.wav"); - sounds["tear"] = new Media("sounds/tear.wav"); - sounds["ambiant"] = new Media("sounds/ambiant.wav"); + sounds["cut"] = new Media("/android_asset/www/sounds/cut.wav"); + sounds["rub"] = new Media("/android_asset/www/sounds/rub.wav"); + sounds["tear"] = new Media("/android_asset/www/sounds/tear.wav"); + sounds["ambiant"] = new Media("/android_asset/www/sounds/ambiant.wav"); } } diff --git a/scripts/main/main.js b/scripts/main/main.js index 226fe63..a92bced 100644 --- a/scripts/main/main.js +++ b/scripts/main/main.js @@ -38,9 +38,9 @@ function checkDevice() { initImages(); initSounds(); - //introductionStage(); + introductionStage(); //initMainMenu(); - Recit.start(); + //Recit.start(); stage.add(mainLayer); stage.add(actionLayer);