|
Discord Social SDK
|
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.
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. | |
|
noexcept |
Move constructor for VoiceSettings.
| discordpp::VoiceSettings::VoiceSettings | ( | const VoiceSettings & | arg0 | ) |
Copy constructor for VoiceSettings.
| 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.
| VoiceSettings & discordpp::VoiceSettings::operator= | ( | const VoiceSettings & | arg0 | ) |
Copy assignment operator for VoiceSettings.
|
noexcept |
Move assignment operator for VoiceSettings.
| 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 | ) |
Setter for VoiceSettings::AutomaticGainControl.
| void discordpp::VoiceSettings::SetEchoCancellation | ( | bool | EchoCancellation | ) |
Setter for VoiceSettings::EchoCancellation.
| void discordpp::VoiceSettings::SetInputMode | ( | discordpp::VoiceInputModeType | InputMode | ) |
Setter for VoiceSettings::InputMode.
| void discordpp::VoiceSettings::SetInputVolume | ( | float | InputVolume | ) |
Setter for VoiceSettings::InputVolume.
| void discordpp::VoiceSettings::SetNoiseCancellation | ( | bool | NoiseCancellation | ) |
Setter for VoiceSettings::NoiseCancellation.
| void discordpp::VoiceSettings::SetNoiseSuppression | ( | bool | NoiseSuppression | ) |
Setter for VoiceSettings::NoiseSuppression.
| void discordpp::VoiceSettings::SetOutputVolume | ( | float | OutputVolume | ) |
Setter for VoiceSettings::OutputVolume.
| void discordpp::VoiceSettings::SetPttKey | ( | std::string | PttKey | ) |
Setter for VoiceSettings::PttKey.
| void discordpp::VoiceSettings::SetSelfDeaf | ( | bool | SelfDeaf | ) |
Setter for VoiceSettings::SelfDeaf.
| void discordpp::VoiceSettings::SetSelfMute | ( | bool | SelfMute | ) |
Setter for VoiceSettings::SelfMute.
|
static |
Uninitialized instance of VoiceSettings.