Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1378:589d9860a974
Bug #1569: Comment boxes cannot be resized, they support scrolling text. Styling of comment boxes. Styling of AB selectors.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 11 Feb 2016 14:37:26 +0000 |
parents | 65eecc71c381 |
children | c2e19bc54c3c |
comparison
equal
deleted
inserted
replaced
1377:a03b04ea3357 | 1378:589d9860a974 |
---|---|
1095 interfaceContext.playhead.start(); | 1095 interfaceContext.playhead.start(); |
1096 } | 1096 } |
1097 }; | 1097 }; |
1098 | 1098 |
1099 this.stop = function() { | 1099 this.stop = function() { |
1100 // Send stop and reset command to all playback buffers and set audioEngine state to stopped (1) | 1100 // Send stop and reset command to all playback buffers |
1101 if (this.status == 1) { | 1101 if (this.status == 1) { |
1102 var setTime = audioContext.currentTime+0.1; | 1102 var setTime = audioContext.currentTime+0.1; |
1103 for (var i=0; i<this.audioObjects.length; i++) | 1103 for (var i=0; i<this.audioObjects.length; i++) |
1104 { | 1104 { |
1105 this.audioObjects[i].stop(setTime); | 1105 this.audioObjects[i].stop(setTime); |
1106 } | 1106 } |
1107 interfaceContext.playhead.stop(); | 1107 interfaceContext.playhead.stop(); |
1108 this.status = 0; | |
1109 } | 1108 } |
1110 }; | 1109 }; |
1111 | 1110 |
1112 this.newTrack = function(element) { | 1111 this.newTrack = function(element) { |
1113 // Pull data from given URL into new audio buffer | 1112 // Pull data from given URL into new audio buffer |