![]() |
Rise
The Vieneo Province
|
A read-only snapshot of the user's voice settings in the connected Discord desktop client. More...
#include <discordpp.h>
Public Member Functions | |
| VoiceSettings (VoiceSettings &&other) noexcept | |
| Move constructor for VoiceSettings. | |
| VoiceSettings & | operator= (VoiceSettings &&other) noexcept |
| Move assignment operator for VoiceSettings. | |
| operator bool () const | |
| Returns true if the instance contains a valid object. | |
| VoiceSettings (const VoiceSettings &arg0) | |
| Copy constructor for VoiceSettings. | |
| VoiceSettings & | operator= (const VoiceSettings &arg0) |
| Copy assignment operator for VoiceSettings. | |
| bool | SelfMute () const |
| Self-mute state. | |
| void | SetSelfMute (bool SelfMute) |
| Setter for VoiceSettings::SelfMute. | |
| bool | SelfDeaf () const |
| Self-deafen state. | |
| void | SetSelfDeaf (bool SelfDeaf) |
| Setter for VoiceSettings::SelfDeaf. | |
| discordpp::VoiceInputModeType | InputMode () const |
| When the client transmits microphone audio. | |
| void | SetInputMode (discordpp::VoiceInputModeType InputMode) |
| Setter for VoiceSettings::InputMode. | |
| std::string | PttKey () const |
| Display string for the push-to-talk key, such as "SHIFT + F". Empty when nothing is bound. | |
| void | SetPttKey (std::string PttKey) |
| Setter for VoiceSettings::PttKey. | |
| float | InputVolume () const |
| Microphone volume, ranging from 0 to 100. | |
| void | SetInputVolume (float InputVolume) |
| Setter for VoiceSettings::InputVolume. | |
| float | OutputVolume () const |
| Speaker volume, ranging from 0 to 200. | |
| void | SetOutputVolume (float OutputVolume) |
| Setter for VoiceSettings::OutputVolume. | |
| bool | AutomaticGainControl () const |
| Automatic gain control state. | |
| void | SetAutomaticGainControl (bool AutomaticGainControl) |
| Setter for VoiceSettings::AutomaticGainControl. | |
| bool | EchoCancellation () const |
| Echo cancellation state. | |
| void | SetEchoCancellation (bool EchoCancellation) |
| Setter for VoiceSettings::EchoCancellation. | |
| bool | NoiseSuppression () const |
| Noise suppression state. | |
| void | SetNoiseSuppression (bool NoiseSuppression) |
| Setter for VoiceSettings::NoiseSuppression. | |
| bool | NoiseCancellation () const |
| Noise cancellation state. | |
| void | SetNoiseCancellation (bool NoiseCancellation) |
| Setter for VoiceSettings::NoiseCancellation. | |
Static Public Attributes | |
| static const VoiceSettings | nullobj |
| Uninitialized instance of VoiceSettings. | |
A read-only snapshot of the user's voice settings in the connected Discord desktop client.
These belong to the Discord client, not to any individual Call.
Definition at line 3199 of file discordpp.h.
|
noexcept |
Move constructor for VoiceSettings.
| discordpp::VoiceSettings::VoiceSettings | ( | const VoiceSettings & | arg0 | ) |
| bool discordpp::VoiceSettings::AutomaticGainControl | ( | ) | const |
Automatic gain control state.
| bool discordpp::VoiceSettings::EchoCancellation | ( | ) | const |
Echo cancellation state.
| discordpp::VoiceInputModeType discordpp::VoiceSettings::InputMode | ( | ) | const |
When the client transmits microphone audio.
| float discordpp::VoiceSettings::InputVolume | ( | ) | const |
Microphone volume, ranging from 0 to 100.
| bool discordpp::VoiceSettings::NoiseCancellation | ( | ) | const |
Noise cancellation state.
| bool discordpp::VoiceSettings::NoiseSuppression | ( | ) | const |
Noise suppression state.
|
inline |
Returns true if the instance contains a valid object.
Definition at line 3220 of file discordpp.h.
| VoiceSettings & discordpp::VoiceSettings::operator= | ( | const VoiceSettings & | arg0 | ) |
|
noexcept |
| float discordpp::VoiceSettings::OutputVolume | ( | ) | const |
Speaker volume, ranging from 0 to 200.
| std::string discordpp::VoiceSettings::PttKey | ( | ) | const |
Display string for the push-to-talk key, such as "SHIFT + F". Empty when nothing is bound.
| bool discordpp::VoiceSettings::SelfDeaf | ( | ) | const |
Self-deafen state.
| bool discordpp::VoiceSettings::SelfMute | ( | ) | const |
Self-mute state.
| void discordpp::VoiceSettings::SetAutomaticGainControl | ( | bool | AutomaticGainControl | ) |
| void discordpp::VoiceSettings::SetEchoCancellation | ( | bool | EchoCancellation | ) |
| void discordpp::VoiceSettings::SetInputMode | ( | discordpp::VoiceInputModeType | InputMode | ) |
| void discordpp::VoiceSettings::SetInputVolume | ( | float | InputVolume | ) |
| void discordpp::VoiceSettings::SetNoiseCancellation | ( | bool | NoiseCancellation | ) |
| void discordpp::VoiceSettings::SetNoiseSuppression | ( | bool | NoiseSuppression | ) |
| void discordpp::VoiceSettings::SetOutputVolume | ( | float | OutputVolume | ) |
| void discordpp::VoiceSettings::SetPttKey | ( | std::string | PttKey | ) |
| void discordpp::VoiceSettings::SetSelfDeaf | ( | bool | SelfDeaf | ) |
| void discordpp::VoiceSettings::SetSelfMute | ( | bool | SelfMute | ) |
|
static |
Uninitialized instance of VoiceSettings.
Definition at line 3218 of file discordpp.h.