comparison ape.js @ 967:16852cf211eb

Fixed metric collection, listening time, for looping sources
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 27 May 2015 18:53:34 +0100
parents 4a5102ff2822
children be4abf039d42
comparison
equal deleted inserted replaced
966:4a5102ff2822 967:16852cf211eb
347 if (loopPlayback) { 347 if (loopPlayback) {
348 audioEngineContext.selectedTrack = function(id) { 348 audioEngineContext.selectedTrack = function(id) {
349 for (var i=0; i<this.audioObjects.length; i++) 349 for (var i=0; i<this.audioObjects.length; i++)
350 { 350 {
351 if (id == i) { 351 if (id == i) {
352 this.audioObjects[i].outputGain.gain.value = 1.0; 352 this.audioObjects[i].loopStart();
353 } else { 353 } else {
354 this.audioObjects[i].outputGain.gain.value = 0.0; 354 this.audioObjects[i].loopStop();
355 } 355 }
356 } 356 }
357 }; 357 };
358 } else { 358 } else {
359 audioEngineContext.selectedTrack = function(id) { 359 audioEngineContext.selectedTrack = function(id) {