From 424053f0801130e7d2e62b5801c9e25fe7dbc28b Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sat, 16 Mar 2024 14:48:35 +0100 Subject: [PATCH] remove audio mapping after recording --- bin/em/variabletime/web/js/record.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/bin/em/variabletime/web/js/record.js b/bin/em/variabletime/web/js/record.js index 0a3ea2c..a4a444f 100644 --- a/bin/em/variabletime/web/js/record.js +++ b/bin/em/variabletime/web/js/record.js @@ -523,23 +523,12 @@ const Record = function(tp) { return new Promise((resolve) => { const layerKeys = Object.keys(hot); const promises = []; - promises.push(() => { - return new Promise((subResolve) => { - const audioOptionsButtons = tp.getPanel() - .querySelectorAll(`.audioButton.active`); - if (audioOptionsButtons !== null) { - audioOptionsButtons.forEach((audioOptionsButton) => { - audioOptionsButton.click(); - }); - } - subResolve(); - }); - }); layerKeys.forEach((layerID) => { const layer = getLayer(layerID); const propTitles = Object.keys(hot[layerID]); const keyframes = []; propTitles.forEach((propTitle) => { + audio.removeAudio(getLayer(layerID),propTitle); // NOTE: layerID is not actually used atm // and should be the layer anyways uncloneInput(layerID, propTitle);