repo: janusweb action: commit revision: path_from: revision_from: 10c6a422dbc4aad14637887b397b52cf8205318d: path_to: revision_to:
commit 10c6a422dbc4aad14637887b397b52cf8205318d Author: James BaicoianuDate: Sat Jan 28 08:11:57 2017 -0800 Disabled sound.rect option for now diff --git a/scripts/sound.js b/scripts/sound.js
--- a/scripts/sound.js
+++ b/scripts/sound.js
@@ -16,7 +16,7 @@ elation.require(['janusweb.janusbase'], function() {
});
Object.defineProperty(this, 'playing', { get: function() { if (this.audio) return this.audio.isPlaying; return false; } });
- elation.events.add(this.engine, 'engine_frame', elation.bind(this, this.checkBounds));
+ //elation.events.add(this.engine, 'engine_frame', elation.bind(this, this.checkBounds));
}
this.createObject3D = function() {
return new THREE.Object3D();
@@ -38,7 +38,7 @@ elation.require(['janusweb.janusbase'], function() {
}
var listener = this.engine.systems.sound.getRealListener();
if (listener) {
- if (this.rect) {
+ if (false && this.rect) {
this.audio = new THREE.Audio(listener);
} else {
this.audio = new THREE.PositionalAudio(listener);
-----END OF PAGE-----