Commit bcfee693 authored by marioromera's avatar marioromera
Browse files

play stop

parent 4f76d922
......@@ -81,9 +81,9 @@ export default function Drawing(svgId) {
if (myTurn) {
// AUDIO
if (window.soundManager) {
const vol = 80;
console.log("setting volume to", vol);
window.soundManager.setVolume('yourTurnAudio', vol);
const volume = 80;
console.log('setting volume to', vol);
window.soundManager.play('yourTurnAudio', { volume, loops: 3 });
}
letterCoords.forEach((letter) => {
......@@ -107,8 +107,9 @@ export default function Drawing(svgId) {
} else {
console.log('Finishing turn');
if (window.soundManager) {
console.log('Setting volume to 0');
soundManager.setVolume('yourTurnAudio', 0);}
console.log('Stop sounds');
soundManager.stopAll();
}
this.myTurnG.selectAll('path').remove();
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment