134 lines
4.3 KiB
TypeScript
134 lines
4.3 KiB
TypeScript
// Module ID: 4538
|
|
// Function ID: 4539
|
|
// Name: initialize
|
|
// Dependencies: [4529, 595, 589, 12, 709, 2]
|
|
|
|
// Module 4538 (initialize)
|
|
import { DeviceTypes } from "DesktopSources";
|
|
import { Store } from "initialize";
|
|
|
|
const CertifiedDeviceStore = "CertifiedDeviceStore";
|
|
let closure_5 = {};
|
|
let closure_6 = {};
|
|
let c7 = 0;
|
|
class CertifiedDeviceStore extends Store {
|
|
}
|
|
const prototype = CertifiedDeviceStore.prototype;
|
|
prototype["initialize"] = function initialize() {
|
|
const Storage = require(595) /* Storage */.Storage;
|
|
const value = Storage.get(CertifiedDeviceStore);
|
|
if (null != value) {
|
|
let item = importDefault(12).forEach(value, (arr) => {
|
|
const item = arr.forEach((type) => {
|
|
if (tmp) {
|
|
type.hardwareMute = false;
|
|
}
|
|
});
|
|
if (null != table[arg1]) {
|
|
const item1 = arr.forEach((arg0) => {
|
|
delete tmp3[tmp2];
|
|
return tmp;
|
|
});
|
|
}
|
|
table[arg1] = arr;
|
|
const item2 = arr.forEach((id) => {
|
|
closure_6[id.id] = id;
|
|
return id;
|
|
});
|
|
});
|
|
const arr = importDefault(12);
|
|
}
|
|
};
|
|
prototype["isCertified"] = function isCertified(found) {
|
|
return null != dependencyMap[found];
|
|
};
|
|
prototype["getCertifiedDevice"] = function getCertifiedDevice(inputDeviceId) {
|
|
return dependencyMap[inputDeviceId];
|
|
};
|
|
prototype["getCertifiedDeviceName"] = function getCertifiedDeviceName(inputDeviceId, arg1) {
|
|
let combined = arg1;
|
|
const certifiedDevice = this.getCertifiedDevice(inputDeviceId);
|
|
if (null != certifiedDevice) {
|
|
const _HermesInternal = HermesInternal;
|
|
combined = "" + certifiedDevice.vendor.name + " " + certifiedDevice.model.name;
|
|
}
|
|
return combined;
|
|
};
|
|
prototype["getCertifiedDeviceByType"] = function getCertifiedDeviceByType(arg0) {
|
|
let closure_0 = arg0;
|
|
return importDefault(12).find(closure_6, (type) => type.type === closure_0);
|
|
};
|
|
prototype["isHardwareMute"] = function isHardwareMute(arg0) {
|
|
let flag = false;
|
|
if (null != dependencyMap[arg0]) {
|
|
flag = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.hardwareMute;
|
|
const tmp3 = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.hardwareMute;
|
|
}
|
|
return flag;
|
|
};
|
|
prototype["hasEchoCancellation"] = function hasEchoCancellation(inputDeviceId) {
|
|
let flag = false;
|
|
if (null != dependencyMap[inputDeviceId]) {
|
|
flag = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.echoCancellation;
|
|
const tmp3 = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.echoCancellation;
|
|
}
|
|
return flag;
|
|
};
|
|
prototype["hasNoiseSuppression"] = function hasNoiseSuppression(inputDeviceId) {
|
|
let flag = false;
|
|
if (null != dependencyMap[inputDeviceId]) {
|
|
flag = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.noiseSuppression;
|
|
const tmp3 = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.noiseSuppression;
|
|
}
|
|
return flag;
|
|
};
|
|
prototype["hasAutomaticGainControl"] = function hasAutomaticGainControl(inputDeviceId) {
|
|
let flag = false;
|
|
if (null != dependencyMap[inputDeviceId]) {
|
|
flag = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.automaticGainControl;
|
|
const tmp3 = tmp.type === DeviceTypes.AUDIO_INPUT && tmp.automaticGainControl;
|
|
}
|
|
return flag;
|
|
};
|
|
prototype["getVendor"] = function getVendor(arg0) {
|
|
let vendor = null;
|
|
if (null != dependencyMap[arg0]) {
|
|
vendor = tmp.vendor;
|
|
}
|
|
return vendor;
|
|
};
|
|
prototype["getModel"] = function getModel(arg0) {
|
|
let model = null;
|
|
if (null != dependencyMap[arg0]) {
|
|
model = tmp.model;
|
|
}
|
|
return model;
|
|
};
|
|
prototype["getRevision"] = function getRevision() {
|
|
return c7;
|
|
};
|
|
CertifiedDeviceStore.displayName = "CertifiedDeviceStore";
|
|
const certifiedDeviceStore = new CertifiedDeviceStore(require("dispatcher"), {
|
|
CERTIFIED_DEVICES_SET: function handleSetCertifiedDevices(arg0) {
|
|
let applicationId;
|
|
let devices;
|
|
({ applicationId, devices } = arg0);
|
|
if (null != table[applicationId]) {
|
|
const item = arr.forEach((arg0) => {
|
|
delete tmp3[tmp2];
|
|
return tmp;
|
|
});
|
|
}
|
|
table[applicationId] = devices;
|
|
const item1 = devices.forEach((id) => {
|
|
closure_6[id.id] = id;
|
|
return id;
|
|
});
|
|
const Storage = require(595) /* Storage */.Storage;
|
|
const result = Storage.set(CertifiedDeviceStore, tmp);
|
|
closure_7 = closure_7 + 1;
|
|
}
|
|
});
|
|
let result = require("initialize").fileFinishedImporting("stores/CertifiedDeviceStore.tsx");
|
|
|
|
export default certifiedDeviceStore;
|