From 6a53881d30a15827c85433d8c6da09ff804400be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?To=CF=80?= Date: Fri, 20 Sep 2024 21:57:33 +0200 Subject: [PATCH] update koe & use voice gateway v8 (#1097) --- .../src/main/java/lavalink/server/config/KoeConfiguration.kt | 5 ++++- settings.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/LavalinkServer/src/main/java/lavalink/server/config/KoeConfiguration.kt b/LavalinkServer/src/main/java/lavalink/server/config/KoeConfiguration.kt index 41397f506..53a9a999b 100644 --- a/LavalinkServer/src/main/java/lavalink/server/config/KoeConfiguration.kt +++ b/LavalinkServer/src/main/java/lavalink/server/config/KoeConfiguration.kt @@ -5,6 +5,7 @@ import com.sedmelluq.lava.common.natives.architecture.DefaultOperatingSystemType import com.sedmelluq.lava.common.natives.architecture.SystemType import moe.kyokobot.koe.KoeOptions import moe.kyokobot.koe.codec.udpqueue.UdpQueueFramePollerFactory +import moe.kyokobot.koe.gateway.GatewayVersion import org.slf4j.Logger import org.slf4j.LoggerFactory import org.springframework.context.annotation.Bean @@ -32,6 +33,8 @@ class KoeConfiguration(val serverConfig: ServerConfig) { @Bean fun koeOptions(): KoeOptions = KoeOptions.builder().apply { + setGatewayVersion(GatewayVersion.V8) + val systemType: SystemType? = try { SystemType(DefaultArchitectureTypes.detect(), DefaultOperatingSystemTypes.detect()) } catch (e: IllegalArgumentException) { @@ -70,4 +73,4 @@ class KoeConfiguration(val serverConfig: ServerConfig) { ) } }.create() -} \ No newline at end of file +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 063966658..c2aecbb1f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -35,7 +35,7 @@ fun VersionCatalogBuilder.spring() { fun VersionCatalogBuilder.voice() { version("lavaplayer", "2.2.1") - version("koe", "2.0.2") + version("koe", "2.0.3-rc2") library("lavaplayer", "dev.arbjerg", "lavaplayer").versionRef("lavaplayer") library("lavaplayer-ip-rotator", "dev.arbjerg", "lavaplayer-ext-youtube-rotator").versionRef("lavaplayer")