diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-29 21:46:15 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-29 21:46:15 -0400 |
commit | dc127d15fb49c108450e691c44ed930a11bb7e59 (patch) | |
tree | 197e6e70138de54694bebb116148cd70b41f78a8 /src/discord/voiceclient.hpp | |
parent | a96d96b3aa883c5ee5892e4ff94e3c539989c66a (diff) | |
download | abaddon-portaudio-dc127d15fb49c108450e691c44ed930a11bb7e59.tar.gz abaddon-portaudio-dc127d15fb49c108450e691c44ed930a11bb7e59.zip |
display user list, client side mute
Diffstat (limited to 'src/discord/voiceclient.hpp')
-rw-r--r-- | src/discord/voiceclient.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/discord/voiceclient.hpp b/src/discord/voiceclient.hpp index c052f28..1dc6e1a 100644 --- a/src/discord/voiceclient.hpp +++ b/src/discord/voiceclient.hpp @@ -1,14 +1,17 @@ #pragma once #ifdef WITH_VOICE - // clang-format off +// clang-format off + #include "snowflake.hpp" #include "waiter.hpp" #include "websocket.hpp" +#include <optional> #include <mutex> #include <queue> #include <string> #include <glibmm/dispatcher.h> #include <sigc++/sigc++.h> +#include <unordered_map> // clang-format on enum class VoiceGatewayCloseCode : uint16_t { @@ -190,6 +193,8 @@ public: void SetServerID(Snowflake id); void SetUserID(Snowflake id); + [[nodiscard]] std::optional<uint32_t> GetSSRCOfUser(Snowflake id) const; + [[nodiscard]] bool IsConnected() const noexcept; private: @@ -218,6 +223,8 @@ private: uint16_t m_port; uint32_t m_ssrc; + std::unordered_map<Snowflake, uint32_t> m_ssrc_map; + std::array<uint8_t, 32> m_secret_key; Websocket m_ws; |