Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,39 @@
|
||||
/* Metro module 13082; source: modules/soundboard/getVolumeForSound.tsx; dependencies: [4259, 4615, 3829, 2] */
|
||||
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');
|
||||
exports.default = getVolumeForSound;
|
||||
exports.getPerceptualSoundboardVolume = function(a0) {
|
||||
var value = a0;
|
||||
var moduleValue = require(dependencyMap[1]);
|
||||
var amplitudeToPerceptual = moduleValue.amplitudeToPerceptual;
|
||||
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;
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user