init commit
This commit is contained in:
21
remotion/node_modules/@remotion/media-parser/dist/state/audio-sample-map.js
generated
vendored
Normal file
21
remotion/node_modules/@remotion/media-parser/dist/state/audio-sample-map.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.audioSampleMapState = void 0;
|
||||
const audioSampleMapState = () => {
|
||||
// {[]}
|
||||
let map = [];
|
||||
const addSample = (audioSampleOffset) => {
|
||||
if (map.find((m) => m.offset === audioSampleOffset.offset)) {
|
||||
return;
|
||||
}
|
||||
map.push(audioSampleOffset);
|
||||
};
|
||||
return {
|
||||
addSample,
|
||||
getSamples: () => map,
|
||||
setFromSeekingHints: (newMap) => {
|
||||
map = newMap;
|
||||
},
|
||||
};
|
||||
};
|
||||
exports.audioSampleMapState = audioSampleMapState;
|
||||
Reference in New Issue
Block a user