86 lines
4.4 KiB
TypeScript
86 lines
4.4 KiB
TypeScript
/* Metro module 15706; source: modules/voice_calls/trackVoiceFeedback.tsx; dependencies: [29, 5, 4259, 12396, 683, 2] */
|
|
function _fun120540(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15914:6, offset: 0x0252f0c7, size: 171 bytes, params: 8, frame: 18
|
|
const env0_2 = ['output_audio_route_type'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(29) /* metro dependency 29 */;
|
|
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
|
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_calls/trackVoiceFeedback.tsx');
|
|
exports.default = function() {
|
|
return _trackVoiceFeedback.apply(this, arguments);
|
|
};
|
|
}
|
|
|
|
function _trackVoiceFeedback() { // fn#120541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15914:160, offset: 0x0252f172, size: 50 bytes, params: 1, frame: 14
|
|
return env0_4(_fun120543).apply(this, arguments);
|
|
}
|
|
|
|
async function _fun120543(a0, {rating, category, reasonCode, reasonDescription, variant, feedback, analyticsData}) { // fn#120543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15914:221, offset: 0x0252f1b8, size: 629 bytes, params: 3, frame: 34
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
await value;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
let binding = env2_5;
|
|
const settings = binding.getSettings();
|
|
const inputDeviceId = env2_5.getInputDeviceId();
|
|
binding = env2_5;
|
|
const getInputDevices = binding.getInputDevices;
|
|
const property = Reflect.apply(getInputDevices, binding, [])[inputDeviceId];
|
|
const outputDeviceId = env2_5.getOutputDeviceId();
|
|
binding = env2_5;
|
|
const getOutputDevices = binding.getOutputDevices;
|
|
const property2 = Reflect.apply(getOutputDevices, binding, [])[outputDeviceId];
|
|
const videoDeviceId = env2_5.getVideoDeviceId();
|
|
binding = env2_5;
|
|
const getVideoDevices = binding.getVideoDevices;
|
|
const property3 = Reflect.apply(getVideoDevices, binding, [])[videoDeviceId];
|
|
const noiseCancellation = env2_5.getNoiseCancellation();
|
|
const audioSubsystem = env2_5.getMediaEngine().getAudioSubsystem();
|
|
const audioLayer = env2_5.getMediaEngine().getAudioLayer();
|
|
const value15 = env2_0(env2_1[3]);
|
|
const getKrispModel = value15.getKrispModel;
|
|
await Reflect.apply(getKrispModel, value15, []);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const r7 = analyticsData ?? ({});
|
|
const output_audio_route_type = r7.output_audio_route_type;
|
|
const value18 = env2_3(r7, env2_2);
|
|
const value19 = env2_0(env2_1[4]);
|
|
const track = value19.track;
|
|
const object2 = {};
|
|
const value20 = rating != null;
|
|
object2.rating = value20 ? rating : 'no response';
|
|
object2.category = category;
|
|
object2.reason_code = reasonCode;
|
|
object2.reason_description = reasonDescription;
|
|
object2.reason_variant = variant;
|
|
object2.feedback = feedback;
|
|
object2.audio_input_mode = settings.mode;
|
|
object2.automatic_audio_input_sensitivity_enabled = settings.modeOptions.autoThreshold;
|
|
object2.audio_input_sensitivity = settings.modeOptions.threshold;
|
|
object2.vad_use_advanced_voice_activity = settings.modeOptions.vadUseKrisp;
|
|
object2.echo_cancellation_enabled = settings.echoCancellation;
|
|
object2.noise_suppression_enabled = settings.noiseSuppression;
|
|
object2.automatic_gain_control_enabled = settings.automaticGainControl;
|
|
object2.voice_output_volume = settings.outputVolume;
|
|
object2.noise_cancellation_enabled = noiseCancellation;
|
|
object2.input_device_name = property == null ? value : property.name;
|
|
object2.output_device_name = property2 == null ? value : property2.name;
|
|
object2.video_device_name = property3 == null ? value : property3.name;
|
|
object2.audio_subsystem = audioSubsystem;
|
|
object2.audio_layer = audioLayer;
|
|
object2.automatic_audio_subsystem = settings.automaticAudioSubsystem;
|
|
object2.krisp_nc_model = undefined;
|
|
object2.audio_output_mode = output_audio_route_type;
|
|
copyDataProperties(object2, value18, value20);
|
|
Reflect.apply(track, value19, [a0, object2]);
|
|
return value;
|
|
}
|
|
|