-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
65 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package dev.kord.voice | ||
|
||
internal actual val isSupported: Boolean = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package dev.kord.voice | ||
|
||
internal actual val isSupported: Boolean = true |
File renamed without changes.
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,3 @@ | ||
package dev.kord.voice | ||
|
||
internal actual val isSupported: Boolean = false |
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,18 @@ | ||
package dev.kord.voice.udp | ||
|
||
import dev.kord.common.annotation.KordVoice | ||
import dev.kord.voice.io.ByteArrayView | ||
import io.ktor.utils.io.core.* | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
@KordVoice | ||
public actual val GlobalVoiceUdpSocket: VoiceUdpSocket = object : VoiceUdpSocket { | ||
override fun all(address: SocketAddress): Flow<ByteReadPacket> = unsupported() | ||
|
||
override suspend fun send(address: SocketAddress, packet: ByteArrayView) = unsupported() | ||
|
||
override suspend fun stop() = unsupported() | ||
} | ||
|
||
private fun unsupported(): Nothing = TODO("Voice is not supported on windows") | ||
|
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,9 @@ | ||
package dev.kord.voice.udp | ||
|
||
import dev.kord.common.annotation.KordVoice | ||
|
||
@KordVoice | ||
public actual data class SocketAddress actual constructor( | ||
public actual val hostname: String, | ||
public actual val port: Int, | ||
) |