init commit
This commit is contained in:
24
remotion/node_modules/@remotion/renderer/dist/seamless-aac-trim.js
generated
vendored
Normal file
24
remotion/node_modules/@remotion/renderer/dist/seamless-aac-trim.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getActualTrimLeft = void 0;
|
||||
const getActualTrimLeft = ({ fps, trimLeftOffset, seamless, assetDuration, audioStartFrame, trimLeft, playbackRate, }) => {
|
||||
const sinceStart = trimLeft - audioStartFrame;
|
||||
if (!seamless) {
|
||||
return {
|
||||
trimLeft: audioStartFrame / fps +
|
||||
(sinceStart / fps) * playbackRate +
|
||||
trimLeftOffset,
|
||||
maxTrim: assetDuration,
|
||||
};
|
||||
}
|
||||
if (seamless) {
|
||||
return {
|
||||
trimLeft: audioStartFrame / fps / playbackRate +
|
||||
sinceStart / fps +
|
||||
trimLeftOffset,
|
||||
maxTrim: assetDuration ? assetDuration / playbackRate : null,
|
||||
};
|
||||
}
|
||||
throw new Error('This should never happen');
|
||||
};
|
||||
exports.getActualTrimLeft = getActualTrimLeft;
|
||||
Reference in New Issue
Block a user