CC-2301 : fade editor now loads currently set fades. Fixing some bugs in the waveform editor.

This commit is contained in:
Naomi 2013-04-25 17:10:37 -04:00
parent 0deaee4d0e
commit 8fea97d580
4 changed files with 104 additions and 38 deletions

View file

@ -289,7 +289,7 @@ PlaylistEditor.prototype.updateEditor = function() {
playbackSec = cursorPos + elapsed;
cursorPixel = Math.ceil(playbackSec * this.sampleRate / res);
for(i = 0, len = editors.length; i < len; i++) {
for (i = 0, len = editors.length; i < len; i++) {
editors[i].updateEditor(cursorPixel, start, end, highlighted);
}
@ -301,6 +301,10 @@ PlaylistEditor.prototype.updateEditor = function() {
}
else {
clearInterval(this.interval);
for (i = 0, len = editors.length; i < len; i++) {
editors[i].updateEditor(-1, undefined, undefined, true);
}
}
};