renderizando projetos com sample tracks. basslines ok

This commit is contained in:
JotaChina committed 2025-12-28 17:04:48 -03:00
1 parent 43a9aff447
commit f45f07a632
1 file changed
+6
+6
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)