2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 13972
|
|
|
|
|
// Function ID: 13973
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: _initialize
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1218, 4501, 4726, 709, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 13972 (_initialize)
|
|
|
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
|
|
|
import initializeDefault from "initialize" /* 4726 */;
|
|
|
|
|
import closure_2 from "fetchFingerprint" /* 1218 */;
|
|
|
|
|
import closure_3 from "_detectH265HardwareDecode" /* 4501 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
initializeDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
class BaseSoundboardManager extends tmp2 {
|
|
|
|
|
constructor() {
|
|
|
|
|
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
|
|
|
closure_0 = applyArgumentsResult;
|
|
|
|
|
applyArgumentsResult._playSound = function _playSound() {
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
applyArgumentsResult._stopAndClearSounds = function _stopAndClearSounds() {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult._handleToggleSelfDeafened = function _handleToggleSelfDeafened() {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (closure_1_3.isDeaf()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
applyArgumentsResult._stopAndClearSounds();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult._handleSoundboardSoundReceived = function _handleSoundboardSoundReceived(arg0) {
|
|
|
|
|
({ soundId, soundVolume, userId, channelId } = arg0);
|
|
|
|
|
if (null != soundId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (userId !== closure_1_2.getId()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
return applyArgumentsResult._playSound(soundId, soundVolume, userId, channelId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult._handleSoundboardSoundPlayLocally = function _handleSoundboardSoundPlayLocally(sound) {
|
|
|
|
|
sound = sound.sound;
|
2026-08-24 06:08:38 +00:00
|
|
|
return applyArgumentsResult._playSound(sound.soundId, sound.volume, closure_1_2.getId(), sound.channelId);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
applyArgumentsResult._handleVoiceChannelSelect = function _handleVoiceChannelSelect() {
|
|
|
|
|
applyArgumentsResult._stopAndClearSounds();
|
|
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const prototype = BaseSoundboardManager.prototype;
|
|
|
|
|
prototype["_initialize"] = function _initialize() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const subscription = dispatcherDefault.subscribe("VOICE_CHANNEL_EFFECT_SEND", this._handleSoundboardSoundReceived);
|
|
|
|
|
const obj = dispatcherDefault;
|
|
|
|
|
const subscription1 = dispatcherDefault.subscribe("GUILD_SOUNDBOARD_SOUND_PLAY_LOCALLY", this._handleSoundboardSoundPlayLocally);
|
|
|
|
|
const obj2 = dispatcherDefault;
|
|
|
|
|
const subscription2 = dispatcherDefault.subscribe("VOICE_CHANNEL_SELECT", this._handleVoiceChannelSelect);
|
|
|
|
|
const obj3 = dispatcherDefault;
|
|
|
|
|
const subscription3 = dispatcherDefault.subscribe("AUDIO_TOGGLE_SELF_DEAF", this._handleToggleSelfDeafened);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
prototype["_terminate"] = function _terminate() {
|
2026-08-24 06:08:38 +00:00
|
|
|
dispatcherDefault.unsubscribe("VOICE_CHANNEL_EFFECT_SEND", this._handleSoundboardSoundReceived);
|
|
|
|
|
const obj = dispatcherDefault;
|
|
|
|
|
dispatcherDefault.unsubscribe("GUILD_SOUNDBOARD_SOUND_PLAY_LOCALLY", this._handleSoundboardSoundPlayLocally);
|
|
|
|
|
const obj2 = dispatcherDefault;
|
|
|
|
|
dispatcherDefault.unsubscribe("VOICE_CHANNEL_SELECT", this._handleVoiceChannelSelect);
|
|
|
|
|
const obj3 = dispatcherDefault;
|
|
|
|
|
dispatcherDefault.unsubscribe("AUDIO_TOGGLE_SELF_DEAF", this._handleToggleSelfDeafened);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/soundboard/BaseSoundboardManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default BaseSoundboardManager;
|