Streams

A representation of receiving voice through Discord and different stages of processing.

Inheritors

Properties

Link copied to clipboard

A flow of all incoming AudioFrames mapped to their ssrc.

Link copied to clipboard

A flow of all incoming dev.kord.voice.udp.RTPPackets through the UDP connection.

Link copied to clipboard

A flow of all incoming AudioFrames mapped to their userId. Streams for every user should be built over time and will not be immediately available.

Link copied to clipboard
abstract val ssrcToUser: Map<UInt, Snowflake>

A map of ssrcs to their corresponding userId.

Functions

Link copied to clipboard
abstract suspend fun listen(key: ByteArray, server: SocketAddress)

Starts propagating packets from server with the following key to decrypt the incoming frames.