# HG changeset patch # User Nicholas Jillings # Date 1455540775 0 # Node ID 489910f8d539cc70c4e2b5cdea64f40ca6b414f3 # Parent b7bf91ac6d0101ea6777c3e82599c85cf6d40e35 Small MUSHRA bug fix. Playback was blocked from ever happening due to play getting called twice. diff -r b7bf91ac6d01 -r 489910f8d539 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;