-
-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from Frederikam/dev
Release v3.3.2
- Loading branch information
Showing
29 changed files
with
502 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ build/* | |
.project | ||
.classpath | ||
.settings | ||
/Testbot/build/ | ||
/Testbot/out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
LavalinkServer/src/main/java/lavalink/server/config/AudioSendFactoryConfiguration.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
LavalinkServer/src/main/java/lavalink/server/config/KoeConfiguration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package lavalink.server.config | ||
|
||
import moe.kyokobot.koe.KoeOptions | ||
import moe.kyokobot.koe.codec.udpqueue.UdpQueueFramePollerFactory | ||
import org.slf4j.Logger | ||
import org.slf4j.LoggerFactory | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
class KoeConfiguration(val serverConfig: ServerConfig) { | ||
|
||
private val log: Logger = LoggerFactory.getLogger(KoeConfiguration::class.java) | ||
|
||
@Bean | ||
fun koeOptions(): KoeOptions = KoeOptions.builder().apply { | ||
log.info("OS: " + System.getProperty("os.name") + ", Arch: " + System.getProperty("os.arch")) | ||
val os = System.getProperty("os.name") | ||
val arch = System.getProperty("os.arch") | ||
|
||
// Maybe add Windows natives back? | ||
val nasSupported = os.contains("linux", ignoreCase = true) | ||
&& arch.equals("amd64", ignoreCase = true) | ||
|
||
if (nasSupported) { | ||
log.info("Enabling JDA-NAS") | ||
var bufferSize = serverConfig.bufferDurationMs ?: UdpQueueFramePollerFactory.DEFAULT_BUFFER_DURATION | ||
if (bufferSize <= 0) { | ||
log.warn("Buffer size of {}ms is illegal. Defaulting to {}", | ||
bufferSize, UdpQueueFramePollerFactory.DEFAULT_BUFFER_DURATION) | ||
bufferSize = UdpQueueFramePollerFactory.DEFAULT_BUFFER_DURATION | ||
} | ||
setFramePollerFactory(UdpQueueFramePollerFactory(bufferSize, Runtime.getRuntime().availableProcessors())) | ||
} else { | ||
log.warn("This system and architecture appears to not support native audio sending! " | ||
+ "GC pauses may cause your bot to stutter during playback.") | ||
} | ||
}.create() | ||
} |
34 changes: 0 additions & 34 deletions
34
LavalinkServer/src/main/java/lavalink/server/config/SentryConfigProperties.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
LavalinkServer/src/main/java/lavalink/server/config/SentryConfigProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package lavalink.server.config | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties | ||
import org.springframework.stereotype.Component | ||
import java.util.* | ||
|
||
/** | ||
* Created by napster on 20.05.18. | ||
*/ | ||
@Component | ||
@ConfigurationProperties(prefix = "sentry") | ||
class SentryConfigProperties { | ||
var dsn = "" | ||
var environment = "" | ||
var tags: Map<String, String> = HashMap() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.