# HG changeset patch # User Nicholas Jillings # Date 1455540775 0 # Node ID 46b16d47c92307809a503ae7bbc51fcd4a3c98d3 # Parent d7b1b270c13abff23c8af44dc9f95175db44d43e Small MUSHRA bug fix. Playback was blocked from ever happening due to play getting called twice. diff -r d7b1b270c13a -r 46b16d47c923 interfaces/mushra.js --- a/interfaces/mushra.js Fri Feb 12 09:02:41 2016 +0000 +++ b/interfaces/mushra.js Mon Feb 15 12:52:55 2016 +0000 @@ -274,7 +274,6 @@ { var id = Number(event.currentTarget.value); //audioEngineContext.metric.sliderPlayed(id); - audioEngineContext.play(id); if (event.currentTarget.getAttribute("playstate") == "ready") {audioEngineContext.play(id);} else if (event.currentTarget.getAttribute("playstate") == "playing") @@ -303,12 +302,14 @@ if (outsideReference != null) { $(outsideReference).removeClass('track-slider-playing'); } + this.play.textContent = "Stop"; }; this.stopPlayback = function() { // Called when playback has stopped. This gets called even if playback never started! this.play.setAttribute("playstate","ready"); $(this.holder).removeClass('track-slider-playing'); + this.play.textContent = "Play"; }; this.getValue = function() { return this.slider.value;