This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,10 +1,13 @@
/* Metro module 13082; source: modules/soundboard/getVolumeForSound.tsx; dependencies: [4259, 4615, 3829, 2] */
import MediaEngineStore from '../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PerceptualVolumeUtilsModule from '../../utils/PerceptualVolumeUtils.tsx'; /* Metro dependency 4615 */
function _fun99961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13272:6, offset: 0x021da960, size: 129 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/soundboard/getVolumeForSound.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/soundboard/getVolumeForSound.tsx');
exports.default = getVolumeForSound;
exports.getPerceptualSoundboardVolume = function(a0) {
var value = a0;
@@ -13,27 +16,29 @@ function _fun99961(global, require, importDefault, importAll, module, exports, d
var value3 = 100;
return Reflect.apply(amplitudeToPerceptual, moduleValue, [value ?? value3]) / value3;
};
}
function getVolumeForSound(a0) { // fn#99962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13272:190, offset: 0x021da9e1, size: 189 bytes, params: 2, frame: 17
var volume;
var r4;
let value = a1;
const value2 = undefined;
if (value !== value2) {
r4 = value;
} else {
value = (require(3829) /* metro dependency 3829: UserSettings */).SoundboardSettings.getSetting();
volume = value == null ? value2 : value.volume;
value = 100;
r4 = volume ?? value;
function getVolumeForSound(a0) { // fn#99962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13272:190, offset: 0x021da9e1, size: 189 bytes, params: 2, frame: 17
var volume;
var r4;
let value = a1;
const value2 = undefined;
if (value !== value2) {
r4 = value;
} else {
value = (require(3829) /* metro dependency 3829: UserSettings */).SoundboardSettings.getSetting();
volume = value == null ? value2 : value.volume;
value = 100;
r4 = volume ?? value;
}
const value4 = (PerceptualVolumeUtilsModule).amplitudeToPerceptual(r4) / 100;
let Math = global.Math;
const min = Math.min;
const mediaEngineStoreBinding = MediaEngineStore;
const getOutputVolume = mediaEngineStoreBinding.getOutputVolume;
value = Reflect.apply(min, Math, [Reflect.apply(getOutputVolume, mediaEngineStoreBinding, []) / 100, 1]);
Math = global.Math;
return Math.min(a0 * value4 * value, 1);
}
const value4 = (require(4615) /* metro dependency 4615: PerceptualVolumeUtils */).amplitudeToPerceptual(r4) / 100;
let Math = global.Math;
const min = Math.min;
const getOutputVolume = MediaEngineStore.getOutputVolume;
value = Reflect.apply(min, Math, [Reflect.apply(getOutputVolume, MediaEngineStore, []) / 100, 1]);
Math = global.Math;
return Math.min(a0 * value4 * value, 1);
}
global.__d(_fun99961, 13082, [4259, 4615, 3829, 2]) /* metro module 13082, dependencies: [4259, 4615, 3829, 2] */;