Package-level declarations

Types

Link copied to clipboard
@KordVoice
interface AudioFrameSender
Link copied to clipboard
@KordVoice
data class AudioFrameSenderConfiguration(val server: SocketAddress, val ssrc: UInt, val key: ByteArray, val interceptorConfiguration: FrameInterceptorConfiguration)
Link copied to clipboard
abstract class AudioPacketProvider(val key: ByteArray, val nonceStrategy: NonceStrategy)
Link copied to clipboard
@KordVoice
data class DefaultAudioFrameSenderData(val udp: VoiceUdpSocket, val interceptor: FrameInterceptor, val provider: AudioProvider, val nonceStrategy: NonceStrategy)
Link copied to clipboard
Link copied to clipboard

A global VoiceUdpSocket for all dev.kord.voice.VoiceConnections, unless specified otherwise. Initiated once and kept open for the lifetime of this process.

Link copied to clipboard
sealed class PayloadType

A guesstimated list of known Discord RTP payloads.

Link copied to clipboard
data class RTPPacket(val paddingBytes: UByte, val payloadType: Byte, val sequence: UShort, val timestamp: UInt, val ssrc: UInt, val csrcIdentifiers: UIntArray, val hasMarker: Boolean, val hasExtension: Boolean, val payload: ByteArrayView)

Originally from this GitHub library.

Link copied to clipboard
@KordVoice
interface VoiceUdpSocket

Functions

Link copied to clipboard
@KordVoice
suspend fun VoiceUdpSocket.receiveFrom(address: InetSocketAddress): Datagram
Link copied to clipboard
fun RTPPacket(ssrc: UInt, timestamp: UInt, sequence: UShort, payloadType: Byte, payload: ByteArray, builder: RTPPacket.Builder.() -> Unit = { }): RTPPacket