decord/source/modules/noise_cancellation/getEffectiveNoiseCancellation.tsx
2026-08-24 06:08:38 +00:00

50 lines
1.3 KiB
TypeScript

// Module ID: 12613
// Function ID: 12614
// Name: set
// Dependencies: [500, 12614, 2]
// Exports: default
// Module 12613 (set)
import set from "set" /* 2 */;
const deep_noise_suppression = "deep_noise_suppression";
let set = new Set(["voice_isolation", "wide_spectrum"]);
const result = set.fileFinishedImporting("modules/noise_cancellation/getEffectiveNoiseCancellation.tsx");
export default function getEffectiveNoiseCancellation(arg0, arg1) {
if (!obj.isIOS()) {
let tmpResult = tmp(500);
if (!tmpResult.isMac()) {
let tmp3 = arg0;
if (arg0) {
let tmp5 = null == arg1;
if (!tmp5) {
tmp5 = "" === arg1;
}
if (!tmp5) {
tmpResult = tmp(500);
tmp5 = !tmpResult.isWindows();
}
if (!tmp5) {
tmp5 = arg1 !== deep_noise_suppression;
}
if (!tmp5) {
tmp5 = !tmp(12614).getWindowsAudioEffectsExperimentConfig({ location: "setNoiseCancellation" }).preferSystemEffects;
const tmpResult1 = tmp(12614);
}
if (tmp5) {
tmp5 = arg0;
}
tmp3 = tmp5;
}
}
return tmp3;
}
const hasItem = set.has(arg1);
let tmp8 = !hasItem;
if (!hasItem) {
tmp8 = arg0;
}
tmp3 = tmp8;
};
export const WINDOWS_NOISE_SUPPRESSION_EFFECT = "deep_noise_suppression";