Discord Elixir v1.1.18 DiscordEx.Voice.Buffer View Source
Buffer Module for holding and reading audio.
Link to this section Summary
Functions
Drain the buffer based off the bit size and apply the result to the function - you don’t actually have to use time to make use of this
Drain the buffer which is assumed to contain just a DCA file with opus packets which have a header that dictate the size of a frame and the packets passed to the function
Dump everything out of the buffer
Read off of the buffer based on a set bit size
Read off of the buffer based on a set bit size and return the integer format
Get the size of the buffer
Create a new queue
Write to the buffer/queue binary data
Link to this section Functions
Drain the buffer based off the bit size and apply the result to the function - you don’t actually have to use time to make use of this
drain_dca(pid(), function(), integer()) :: binary()
Drain the buffer which is assumed to contain just a DCA file with opus packets which have a header that dictate the size of a frame and the packets passed to the function
Dump everything out of the buffer
Read off of the buffer based on a set bit size
read(pid(), integer(), atom()) :: binary()
Read off of the buffer based on a set bit size and return the integer format
Get the size of the buffer
Create a new queue
Write to the buffer/queue binary data