renderizando projetos com sample tracks. basslines ok
Deploy / Deploy (push) Successful in 2m13s Details

This commit is contained in:
JotaChina 2025-12-28 17:04:48 -03:00
parent 86900c9a12
commit a3817ba581
1 changed files with 6 additions and 0 deletions

View File

@ -1213,6 +1213,12 @@ async function applySampleTracksToXmlAndZip(xmlDoc, zip) {
const offsetSec = clip.offset || 0; const offsetSec = clip.offset || 0;
// ✅ ADICIONE ISSO
const needsOffset = Math.abs(offsetSec) > 1e-6;
const needsBake =
Math.abs((vol ?? 1) - 1) > 1e-6 ||
Math.abs((pan ?? 0) - 0) > 1e-6;
// ----------------------------------------- // -----------------------------------------
// ✅ OTIMIZAÇÃO 2: sem offset + sem bake mix // ✅ OTIMIZAÇÃO 2: sem offset + sem bake mix
// -> usa arquivo original no zip (sem decode/encode) // -> usa arquivo original no zip (sem decode/encode)