changeset 1383:1c5fa95cf158

Small MUSHRA bug fix. Playback was blocked from ever happening due to play getting called twice.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 15 Feb 2016 12:52:55 +0000
parents 4f8d8ce55462
children 7cd2a8dcdc51
files interfaces/mushra.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;