Fits a rendered track to a budget: cuts it to maxSeconds with a fade, folds it to mono
and halves its rate, in that order. A mono track shares one array between both channels, so
it costs half the memory in the renderer's hands even though a stereo AudioBuffer made
from it later still has two. Loop points past the cut are pulled back to the new end.
Fits a rendered track to a budget: cuts it to
maxSecondswith a fade, folds it to mono and halves its rate, in that order. A mono track shares one array between both channels, so it costs half the memory in the renderer's hands even though a stereoAudioBuffermade from it later still has two. Loop points past the cut are pulled back to the new end.