Mercurial > hg > webaudioevaluationtool
comparison interfaces/AB.js @ 2694:1ccc083552d5
Minor fixed for AB
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Sat, 11 Mar 2017 18:14:59 +0000 |
parents | 31af72ea5e61 |
children | 536cb44c7292 |
comparison
equal
deleted
inserted
replaced
2693:31af72ea5e61 | 2694:1ccc083552d5 |
---|---|
273 }, this); | 273 }, this); |
274 console.log("Selected " + this.id + ' (' + time + ')'); | 274 console.log("Selected " + this.id + ' (' + time + ')'); |
275 }; | 275 }; |
276 this.playback.setAttribute("playstate", "ready"); | 276 this.playback.setAttribute("playstate", "ready"); |
277 this.playbackClicked = function () { | 277 this.playbackClicked = function () { |
278 if (event.currentTarget.getAttribute("playstate") == "ready") { | 278 if (this.playback.getAttribute("playstate") == "ready") { |
279 audioEngineContext.play(this.id); | 279 audioEngineContext.play(this.id); |
280 } else if (event.currentTarget.getAttribute("playstate") == "playing") { | 280 } else if (this.playback.getAttribute("playstate") == "playing") { |
281 audioEngineContext.stop(); | 281 audioEngineContext.stop(); |
282 } | 282 } |
283 | 283 |
284 }; | 284 }; |
285 this.handleEvent = function (event) { | 285 this.handleEvent = function (event) { |