# HG changeset patch # User Nicholas Jillings # Date 1455540775 0 # Node ID 1c5fa95cf15811d7ca8903b6e9f135ec4218c68b # Parent 4f8d8ce55462ff7b893ee33850e6f8c6276144ea Small MUSHRA bug fix. Playback was blocked from ever happening due to play getting called twice. diff -r 4f8d8ce55462 -r 1c5fa95cf158 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;