90 lines
5.2 KiB
TypeScript
90 lines
5.2 KiB
TypeScript
/* Metro module 15706; source: modules/voice_calls/trackVoiceFeedback.tsx; dependencies: [29, 5, 4259, 12396, 683, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ObjectWithoutProperties from '../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import MediaEngineStore from '../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
|
|
(FileImportTrackerModule).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 Module00005(_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 object = {};
|
|
const value20 = rating != null;
|
|
object.rating = value20 ? rating : 'no response';
|
|
object.category = category;
|
|
object.reason_code = reasonCode;
|
|
object.reason_description = reasonDescription;
|
|
object.reason_variant = variant;
|
|
object.feedback = feedback;
|
|
object.audio_input_mode = settings.mode;
|
|
object.automatic_audio_input_sensitivity_enabled = settings.modeOptions.autoThreshold;
|
|
object.audio_input_sensitivity = settings.modeOptions.threshold;
|
|
object.vad_use_advanced_voice_activity = settings.modeOptions.vadUseKrisp;
|
|
object.echo_cancellation_enabled = settings.echoCancellation;
|
|
object.noise_suppression_enabled = settings.noiseSuppression;
|
|
object.automatic_gain_control_enabled = settings.automaticGainControl;
|
|
object.voice_output_volume = settings.outputVolume;
|
|
object.noise_cancellation_enabled = noiseCancellation;
|
|
object.input_device_name = property == null ? value : property.name;
|
|
object.output_device_name = property2 == null ? value : property2.name;
|
|
object.video_device_name = property3 == null ? value : property3.name;
|
|
object.audio_subsystem = audioSubsystem;
|
|
object.audio_layer = audioLayer;
|
|
object.automatic_audio_subsystem = settings.automaticAudioSubsystem;
|
|
object.krisp_nc_model = undefined;
|
|
object.audio_output_mode = output_audio_route_type;
|
|
copyDataProperties(object, value18, value20);
|
|
Reflect.apply(track, value19, [a0, object]);
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120540, 15706, [29, 5, 4259, 12396, 683,
|
|
2]) /* metro module 15706, dependencies: [29, 5, 4259, 12396, 683, 2] */;
|