voice receive packet
More...
#include <dispatcher.h>
◆ voice_receive_t()
dpp::voice_receive_t::voice_receive_t |
( |
class discord_client * |
client, |
|
|
const std::string & |
raw |
|
) |
| |
Constructor.
- Parameters
-
client | The shard the event originated on. WILL ALWAYS be NULL. |
raw | Raw event text as JSON |
◆ audio
uint8_t* dpp::voice_receive_t::audio |
Audio data, encoded as 48kHz stereo PCM or Opus.
◆ audio_size
size_t dpp::voice_receive_t::audio_size |
◆ from
Shard the event came from
◆ raw_event
std::string dpp::event_dispatch_t::raw_event |
|
inherited |
◆ user_id
User ID of speaker (zero if unknown)
◆ voice_client