From 677cb71c58e4f09749ffcb5ffa5c87ce71831f61 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Fri, 6 Aug 2021 17:41:27 +0100 Subject: [PATCH] Fix --- modules/discord_voice/index.js | 124 ++++++++++++++++++++++++++++++++- 1 file changed, 121 insertions(+), 3 deletions(-) diff --git a/modules/discord_voice/index.js b/modules/discord_voice/index.js index 724b9a2..1a4bbd3 100644 --- a/modules/discord_voice/index.js +++ b/modules/discord_voice/index.js @@ -77,9 +77,127 @@ if (debugLogging && console.discordVoiceHooked == null) { // without breaking compatibility. if (process.arch === 'arm64') { console.warn("Voice engine: Not supported"); - module.exports = { - consoleLog = (...args) => {}, - } + module.exports = { + + setOnVoiceCallback:(...args) => {}, + setEmitVADLevel:(...args) => {}, + setTransportOptions:(...args) => {}, + setDeviceChangeCallback:(...args) => {}, + setOutputDevice:(...args) => {}, + setInputDevice:(...args) => {}, + setVideoInputDevice:(...args) => {}, + getOutputDevices:(...args) => {}, + getInputDevices:(...args) => {}, + getVideoInputDevices:(...args) => {}, + setVideoOutputSink:(...args) => {}, + addDirectVideoOutputSink:(...args) => {}, + removeDirectVideoOutputSink:(...args) => {}, + signalVideoOutputSinkReady:(...args) => {}, + setImageDataAllocator:(...args) => {}, + setInputVolume:(...args) => {}, + setOutputVolume:(...args) => {}, + setVolumeChangeCallback:(...args) => {}, + setNoInputThreshold:(...args) => {}, + setNoInputCallback:(...args) => {}, + getSupportedVideoCodecs:(...args) => {}, + setExperimentalAdm:(...args) => {}, + getAudioSubsystem:(...args) => {}, + getDesktopSources:(...args) => {}, + pingVoiceThread:(...args) => {}, + getScreenPreviews:(...args) => {}, + getWindowPreviews:(...args) => {}, + consoleLog:(...args) => {}, + writeAudioDebugState:(...args) => {}, + setAecDump:(...args) => {}, + rankRtcRegions:(...args) => {}, + getSoundshareStatus:(...args) => {}, + enableSoundshare:(...args) => {}, + setVideoInputInitializationCallback:(...args) => {}, + setOnSpeakingCallback:(...args) => {}, + setOnSpeakingWhileMutedCallback:(...args) => {}, + setRemoteUserSpeakingStatus:(...args) => {}, + setRemoteUserCanHavePriority:(...args) => {}, + setPingCallback:(...args) => {}, + setPingTimeoutCallback:(...args) => {}, + setPingInterval:(...args) => {}, + configureConnectionRetries:(...args) => {}, + getEncryptionModes:(...args) => {}, + destroy:(...args) => {}, + mergeUsers:(...args) => {}, + destroyUser:(...args) => {}, + setVideoBroadcast:(...args) => {}, + setOnVideoCallback:(...args) => {}, + setOnDesktopSourceEnded:(...args) => {}, + setDesktopSource:(...args) => {}, + setDesktopSourceWithOptions:(...args) => {}, + clearDesktopSource:(...args) => {}, + setDesktopSourceStatusCallback:(...args) => {}, + setOnSoundshare:(...args) => {}, + setOnSoundshareEnded:(...args) => {}, + setOnSoundshareFailed:(...args) => {}, + setLocalPan:(...args) => {}, + setLocalVolume:(...args) => {}, + setLocalMute:(...args) => {}, + setSelfMute:(...args) => {}, + setSelfDeafen:(...args) => {}, + setDisableLocalVideo:(...args) => {}, + setMinimumOutputDelay:(...args) => {}, + setPTTActive:(...args) => {}, + getFilteredStats:(...args) => {}, + startReplay:(...args) => {}, + VoiceConnection:(...args) => {}, + VoiceReplayConnection:(...args) => {}, + inputMode:(...args) => {}, + inputModeOptions:(...args) => {}, + attenuation:(...args) => {}, + attenuationFactor:(...args) => {}, + attenuateWhileSpeakingSelf:(...args) => {}, + attenuateWhileSpeakingOthers:(...args) => {}, + encodingBitRate:(...args) => {}, + encodingVoiceBitRate:(...args) => {}, + encodingVideoBitRate:(...args) => {}, + encodingVideoMaxBitRate:(...args) => {}, + encodingVideoMinBitRate:(...args) => {}, + encodingVideoWidth:(...args) => {}, + encodingVideoHeight:(...args) => {}, + encodingVideoFrameRate:(...args) => {}, + remoteSinkWantsPixelCount:(...args) => {}, + remoteSinkWantsMaxFramerate:(...args) => {}, + encodingVideoDegradationPreference:(...args) => {}, + experimentalEncoders:(...args) => {}, + hardwareH264:(...args) => {}, + minimumOutputDelay:(...args) => {}, + simulatedPacketLoss:(...args) => {}, + packetLossRate:(...args) => {}, + callMinBitRate:(...args) => {}, + callBitRate:(...args) => {}, + callMaxBitRate:(...args) => {}, + soundsharePid:(...args) => {}, + soundshareLoopback:(...args) => {}, + prioritySpeakerDucking:(...args) => {}, + encryptionSettings:(...args) => {}, + secretKey:(...args) => {}, + videoEncoder:(...args) => {}, + videoDecoders:(...args) => {}, + audioEncoder:(...args) => {}, + audioDecoders:(...args) => {}, + enableVideoEffects:(...args) => {}, + bypassVideoEffects:(...args) => {}, + streamParameters:(...args) => {}, + postponeDecodeLevel:(...args) => {}, + reconnectInterval:(...args) => {}, + rtxType:(...args) => {}, + pacsize:(...args) => {}, + rtxSsrc:(...args) => {}, + maxBitrate:(...args) => {}, + maxPixelCount:(...args) => {}, + audioSsrc:(...args) => {}, + videoSsrc:(...args) => {}, + screen:(...args) => {}, + useVideoHook:(...args) => {}, + useQuartzCapturer:(...args) => {}, + hdrCaptureMode:(...args) => {}, + }; } else { features.declareSupported('voice_panning'); features.declareSupported('voice_multiple_connections');