mirror of https://github.com/jitsi/jitsi-meet
The majority of the code is in the WASM file, the JS is just 9KB. It's so little, in fact, that the performance hint for the main bundle didn't have to be adjusted.pull/8790/head jitsi-meet_5624
parent
22b6d32174
commit
30d0aabaca
@ -1,27 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import { getJitsiMeetGlobalNS, loadScript } from '../base/util'; |
||||
|
||||
let loadRnnoisePromise; |
||||
|
||||
/** |
||||
* Returns promise that resolves with a RnnoiseProcessor instance. |
||||
* |
||||
* @returns {Promise<RnnoiseProcessor>} - Resolves with the blur effect instance. |
||||
*/ |
||||
export function createRnnoiseProcessorPromise() { |
||||
// Subsequent calls should not attempt to load the script multiple times.
|
||||
if (!loadRnnoisePromise) { |
||||
loadRnnoisePromise = loadScript('libs/rnnoise-processor.min.js'); |
||||
} |
||||
|
||||
return loadRnnoisePromise.then(() => { |
||||
const ns = getJitsiMeetGlobalNS(); |
||||
|
||||
if (ns?.effects?.rnnoise?.createRnnoiseProcessor) { |
||||
return ns.effects.rnnoise.createRnnoiseProcessor(); |
||||
} |
||||
|
||||
throw new Error('Rnnoise module binding createRnnoiseProcessor not found!'); |
||||
}); |
||||
} |
@ -1,2 +0,0 @@ |
||||
|
||||
export * from './functions'; |
Loading…
Reference in new issue