From 5982f477fc57384efd49987224e060b23f8fdd4b Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 22 Sep 2018 15:16:28 +0200 Subject: [PATCH] Made the connection type configurable --- js/voice/VoiceHandler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/js/voice/VoiceHandler.ts b/js/voice/VoiceHandler.ts index 345d6cf4..d15636e4 100644 --- a/js/voice/VoiceHandler.ts +++ b/js/voice/VoiceHandler.ts @@ -131,6 +131,7 @@ class VoiceConnection { constructor(client) { this.client = client; + this.type = settings.global("voice_connection_type", VoiceConnectionType.JS_ENCODE); this.voiceRecorder = new VoiceRecorder(this); if(this.type != VoiceConnectionType.NATIVE_ENCODE) { this.voiceRecorder.on_data = this.handleVoiceData.bind(this);