mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed whitespace in soundedit.WaveformView
This commit is contained in:
parent
453f26559c
commit
3ca6d42232
1 changed files with 9 additions and 9 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue