Name
Description
Type
Session
The parent session of this stream
DiscordVoiceSession
Encodes and sends a buffer of audio data.
buffer
The buffer containing the audio data
byte[]
offset
The offset to start from
int
The current offset + 3840 (that's the amount of bytes opus will encode for a packet).
Encodes and sends an entire buffer of audio data through the voice channel.
stream
The audio data stream
Stream
filePath
The path of the file to read and copy from
string
The offset to start copying from
int?
Returns the last offset at which it copied from. If this is below buffer.Length, an error has occured.
Last updated 5 years ago