Skip to content

Commit

Permalink
update koe & use voice gateway v8 (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 authored Sep 20, 2024
1 parent 634541e commit 6a53881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -70,4 +73,4 @@ class KoeConfiguration(val serverConfig: ServerConfig) {
)
}
}.create()
}
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6a53881

Please sign in to comment.