repo: janusweb action: commit revision: path_from: revision_from: 9ddcdb598897a6324e3acf10a7bb3390f11d3746: path_to: revision_to:
commit 9ddcdb598897a6324e3acf10a7bb3390f11d3746 Author: James BaicoianuDate: Sat Oct 21 03:03:02 2017 -0700 Restart sound if already playing diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1066,6 +1066,10 @@ elation.require([
this.sounds[name][k] = properties[k];
}
}
+ if (this.sounds[name].playing) {
+ this.sounds[name].stop();
+ this.sounds[name].seek(0);
+ }
this.sounds[name].play();
}
}
-----END OF PAGE-----