DiscordVoiceSessionDecoder
open class DiscordVoiceSessionDecoder
Class that decodes Opus voice data into raw PCM data for a VoiceEngine. It can decode multiple streams. Decoding is not thread safe, and it is up to the caller to decode safely.
-
Decodes an opus encoded packet into raw PCM.
Declaration
Swift
open func decode(_ packet: DiscordOpusVoiceData) throws -> DiscordRawVoiceDataParameters
packetThe Opus encoded packet.
Return Value
DiscordVoiceSessionDecoder Class Reference