init commit
This commit is contained in:
1
remotion/node_modules/@remotion/webcodecs/dist/audio-data/data-types.d.ts
generated
vendored
Normal file
1
remotion/node_modules/@remotion/webcodecs/dist/audio-data/data-types.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const getDataTypeForAudioFormat: (format: AudioSampleFormat) => Uint8ArrayConstructor | Float32ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor;
|
||||
26
remotion/node_modules/@remotion/webcodecs/dist/audio-data/data-types.js
generated
vendored
Normal file
26
remotion/node_modules/@remotion/webcodecs/dist/audio-data/data-types.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getDataTypeForAudioFormat = void 0;
|
||||
const getDataTypeForAudioFormat = (format) => {
|
||||
switch (format) {
|
||||
case 'f32':
|
||||
return Float32Array;
|
||||
case 'f32-planar':
|
||||
return Float32Array;
|
||||
case 's16':
|
||||
return Int16Array;
|
||||
case 's16-planar':
|
||||
return Int16Array;
|
||||
case 'u8':
|
||||
return Uint8Array;
|
||||
case 'u8-planar':
|
||||
return Uint8Array;
|
||||
case 's32':
|
||||
return Int32Array;
|
||||
case 's32-planar':
|
||||
return Int32Array;
|
||||
default:
|
||||
throw new Error(`Unsupported audio format: ${format}`);
|
||||
}
|
||||
};
|
||||
exports.getDataTypeForAudioFormat = getDataTypeForAudioFormat;
|
||||
1
remotion/node_modules/@remotion/webcodecs/dist/audio-data/is-planar-format.d.ts
generated
vendored
Normal file
1
remotion/node_modules/@remotion/webcodecs/dist/audio-data/is-planar-format.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const isPlanarFormat: (format: AudioSampleFormat) => boolean;
|
||||
7
remotion/node_modules/@remotion/webcodecs/dist/audio-data/is-planar-format.js
generated
vendored
Normal file
7
remotion/node_modules/@remotion/webcodecs/dist/audio-data/is-planar-format.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isPlanarFormat = void 0;
|
||||
const isPlanarFormat = (format) => {
|
||||
return format.includes('-planar');
|
||||
};
|
||||
exports.isPlanarFormat = isPlanarFormat;
|
||||
Reference in New Issue
Block a user