Commit f6b0fd77 authored by marioromera's avatar marioromera
Browse files

play myturn

parent c64570ce
......@@ -14,8 +14,8 @@
url: './swf/',
debugMode: true,
onready: function () {
var mySound = soundManager.createSound({
id: 'aSound',
var yourTurn = soundManager.createSound({
id: 'yourTurn',
url: './yourTurn.mp3'
});
mySound.play();
......
......@@ -6,10 +6,6 @@ import { Subject } from 'rxjs';
import { myTurnPathsData } from './myTurnPathData';
import { soundManager } from 'soundmanager2';
var yourTurnAudio = soundManager.createSound({
url: './yourTurn.mp3',
});
const MARGIN = 20;
const createEmptySession = () => ({
pathData: [],
......@@ -88,7 +84,7 @@ export default function Drawing(svgId) {
let duration = Math.round(yourTurnAudio.duration * 1000);
console.log('DURATION ', duration);
yourTurnAudio.play({ loops: 3 });
soundManager.play('yourTurn', { loops: 3 });
letterCoords.forEach((letter) => {
const bg = this.myTurnG
......
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