Add .gitignore to exclude all node packages and lock files
This commit is contained in:
22
skills/remotion-prompt-video/node_modules/@remotion/webcodecs/dist/audio-decoder-config.js
generated
vendored
Normal file
22
skills/remotion-prompt-video/node_modules/@remotion/webcodecs/dist/audio-decoder-config.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getAudioDecoderConfig = void 0;
|
||||
const getAudioDecoderConfig = async (config) => {
|
||||
if (config.codec === 'pcm-s16') {
|
||||
return config;
|
||||
}
|
||||
if (config.codec === 'pcm-s24') {
|
||||
return config;
|
||||
}
|
||||
if (typeof AudioDecoder === 'undefined') {
|
||||
return null;
|
||||
}
|
||||
if (typeof EncodedAudioChunk === 'undefined') {
|
||||
return null;
|
||||
}
|
||||
if ((await AudioDecoder.isConfigSupported(config)).supported) {
|
||||
return config;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
exports.getAudioDecoderConfig = getAudioDecoderConfig;
|
||||
Reference in New Issue
Block a user