From 14fb664f56056691d28dc5c6fca9954b5adde5c0 Mon Sep 17 00:00:00 2001 From: MeLike2D Date: Sat, 20 Mar 2021 14:16:30 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20#2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/src/main/kotlin/obsidian/server/io/MagmaClient.kt | 2 +- .../main/kotlin/obsidian/server/player/filter/FilterChain.kt | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Server/src/main/kotlin/obsidian/server/io/MagmaClient.kt b/Server/src/main/kotlin/obsidian/server/io/MagmaClient.kt index 2315b24..fdeb3c0 100644 --- a/Server/src/main/kotlin/obsidian/server/io/MagmaClient.kt +++ b/Server/src/main/kotlin/obsidian/server/io/MagmaClient.kt @@ -256,7 +256,7 @@ class MagmaClient( return } - logger.info("Our latency between the voice websocket is ${System.currentTimeMillis() - lastHeartbeat!!}ms") + logger.debug("Voice WebSocket latency is ${System.currentTimeMillis() - lastHeartbeat!!}ms") } override suspend fun heartbeatDispatched(nonce: Long) { diff --git a/Server/src/main/kotlin/obsidian/server/player/filter/FilterChain.kt b/Server/src/main/kotlin/obsidian/server/player/filter/FilterChain.kt index 50672b1..d75fa97 100644 --- a/Server/src/main/kotlin/obsidian/server/player/filter/FilterChain.kt +++ b/Server/src/main/kotlin/obsidian/server/player/filter/FilterChain.kt @@ -58,9 +58,7 @@ class FilterChain(val link: Link) { * Applies all enabled filters to the player. */ fun apply() { - if (enabled.isNotEmpty()) { - link.player.setFilterFactory(getFilterFactory()) - } + link.player.setFilterFactory(getFilterFactory()) } inner class FilterFactory : PcmFilterFactory {