Discord Elixir v1.1.4 DiscordEx.Voice.Buffer
Buffer Module for holding and reading audio.
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
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
Specs
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
Specs
read(pid, integer) :: binary
Read off of the buffer based on a set bit size
Specs
read(pid, integer, atom) :: binary
Read off of the buffer based on a set bit size and return the integer format