mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
21 lines
847 B
TypeScript
21 lines
847 B
TypeScript
/*!
|
|
* Copyright (c) 2026-present, Vanilagy and contributors
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
const AAC_ENCODER_LOADED_SYMBOL = Symbol.for('@mediabunny/aac-encoder loaded');
|
|
if ((globalThis as Record<symbol, unknown>)[AAC_ENCODER_LOADED_SYMBOL]) {
|
|
console.error(
|
|
'[WARNING]\n@mediabunny/aac-encoder was loaded twice.'
|
|
+ ' This will likely cause the encoder not to work correctly.'
|
|
+ ' Check if multiple dependencies are importing different versions of @mediabunny/aac-encoder,'
|
|
+ ' or if something is being bundled incorrectly.',
|
|
);
|
|
}
|
|
(globalThis as Record<symbol, unknown>)[AAC_ENCODER_LOADED_SYMBOL] = true;
|
|
|
|
export { registerAacEncoder } from './encoder';
|