Fixed whitespace in soundedit.WaveformView

This commit is contained in:
Nathan Dinsmore 2014-06-24 12:43:37 -04:00
parent 453f26559c
commit 3ca6d42232

View file

@ -381,17 +381,17 @@ public class WaveformView extends Sprite implements DragClient {
var dups:int = 2 * (44100 / samplingRate); // number of copies of each samples to write
if (dups & 1) dups++; // ensure that dups is even
var count:int = 6000 / dups;
for (i = 0; i < count && (playIndex < playEndIndex); i++) {
for (i = 0; i < count && (playIndex < playEndIndex); i++) {
var sample:Number = samples[playIndex++] / 32767;
for (var j:int = 0; j < dups; j++) evt.data.writeFloat(sample);
}
if (playbackStarting) {
}
if (playbackStarting) {
if (i < count) {
// Very short sound or selection; pad with enough zeros so sound actually plays.
for (i = 0; i < 2048; i++) evt.data.writeFloat(0 / 32767);
}
playbackStarting = false;
}
}
}
/* Editing Operations */