comparison core.js @ 821:e266584705fc

Feature #1270 completed. Outside reference works as designed
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 23 Nov 2015 10:47:02 +0000
parents 7b0ce3a9ddc1
children d0a061995428
comparison
equal deleted inserted replaced
820:7b0ce3a9ddc1 821:e266584705fc
950 this.bufferNode.connect(this.outputGain); 950 this.bufferNode.connect(this.outputGain);
951 this.bufferNode.buffer = this.buffer; 951 this.bufferNode.buffer = this.buffer;
952 this.bufferNode.loop = audioEngineContext.loopPlayback; 952 this.bufferNode.loop = audioEngineContext.loopPlayback;
953 this.bufferNode.onended = function(event) { 953 this.bufferNode.onended = function(event) {
954 // Safari does not like using 'this' to reference the calling object! 954 // Safari does not like using 'this' to reference the calling object!
955 event.currentTarget.owner.metric.stopListening(audioEngineContext.timer.getTestTime(),event.currentTarget.owner.getCurrentPosition()); 955 //event.currentTarget.owner.metric.stopListening(audioEngineContext.timer.getTestTime(),event.currentTarget.owner.getCurrentPosition());
956 event.currentTarget.owner.stop();
956 }; 957 };
957 if (this.bufferNode.loop == false) { 958 if (this.bufferNode.loop == false) {
958 this.metric.startListening(audioEngineContext.timer.getTestTime()); 959 this.metric.startListening(audioEngineContext.timer.getTestTime());
959 } 960 }
960 this.bufferNode.start(startTime); 961 this.bufferNode.start(startTime);