Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp::VoiceSettings Class Reference

A read-only snapshot of the user's voice settings in the connected Discord desktop client. More...

#include <discordpp.h>

Collaboration diagram for discordpp::VoiceSettings:
[legend]

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ VoiceSettings() [1/2]

discordpp::VoiceSettings::VoiceSettings ( VoiceSettings && other)
noexcept

Move constructor for VoiceSettings.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VoiceSettings() [2/2]

discordpp::VoiceSettings::VoiceSettings ( const VoiceSettings & arg0)

Copy constructor for VoiceSettings.

Here is the call graph for this function:

Member Function Documentation

◆ AutomaticGainControl()

bool discordpp::VoiceSettings::AutomaticGainControl ( ) const

Automatic gain control state.

Here is the caller graph for this function:

◆ EchoCancellation()

bool discordpp::VoiceSettings::EchoCancellation ( ) const

Echo cancellation state.

Here is the caller graph for this function:

◆ InputMode()

discordpp::VoiceInputModeType discordpp::VoiceSettings::InputMode ( ) const

When the client transmits microphone audio.

Here is the caller graph for this function:

◆ InputVolume()

float discordpp::VoiceSettings::InputVolume ( ) const

Microphone volume, ranging from 0 to 100.

Here is the caller graph for this function:

◆ NoiseCancellation()

bool discordpp::VoiceSettings::NoiseCancellation ( ) const

Noise cancellation state.

Here is the caller graph for this function:

◆ NoiseSuppression()

bool discordpp::VoiceSettings::NoiseSuppression ( ) const

Noise suppression state.

Here is the caller graph for this function:

◆ operator bool()

discordpp::VoiceSettings::operator bool ( ) const
inline

Returns true if the instance contains a valid object.

Definition at line 3220 of file discordpp.h.

◆ operator=() [1/2]

VoiceSettings & discordpp::VoiceSettings::operator= ( const VoiceSettings & arg0)

Copy assignment operator for VoiceSettings.

Here is the call graph for this function:

◆ operator=() [2/2]

VoiceSettings & discordpp::VoiceSettings::operator= ( VoiceSettings && other)
noexcept

Move assignment operator for VoiceSettings.

Here is the call graph for this function:

◆ OutputVolume()

float discordpp::VoiceSettings::OutputVolume ( ) const

Speaker volume, ranging from 0 to 200.

Here is the caller graph for this function:

◆ PttKey()

std::string discordpp::VoiceSettings::PttKey ( ) const

Display string for the push-to-talk key, such as "SHIFT + F". Empty when nothing is bound.

Here is the caller graph for this function:

◆ SelfDeaf()

bool discordpp::VoiceSettings::SelfDeaf ( ) const

Self-deafen state.

Here is the caller graph for this function:

◆ SelfMute()

bool discordpp::VoiceSettings::SelfMute ( ) const

Self-mute state.

Here is the caller graph for this function:

◆ SetAutomaticGainControl()

void discordpp::VoiceSettings::SetAutomaticGainControl ( bool AutomaticGainControl)

Setter for VoiceSettings::AutomaticGainControl.

Here is the call graph for this function:

◆ SetEchoCancellation()

void discordpp::VoiceSettings::SetEchoCancellation ( bool EchoCancellation)

Setter for VoiceSettings::EchoCancellation.

Here is the call graph for this function:

◆ SetInputMode()

void discordpp::VoiceSettings::SetInputMode ( discordpp::VoiceInputModeType InputMode)

Setter for VoiceSettings::InputMode.

Here is the call graph for this function:

◆ SetInputVolume()

void discordpp::VoiceSettings::SetInputVolume ( float InputVolume)

Setter for VoiceSettings::InputVolume.

Here is the call graph for this function:

◆ SetNoiseCancellation()

void discordpp::VoiceSettings::SetNoiseCancellation ( bool NoiseCancellation)

Setter for VoiceSettings::NoiseCancellation.

Here is the call graph for this function:

◆ SetNoiseSuppression()

void discordpp::VoiceSettings::SetNoiseSuppression ( bool NoiseSuppression)

Setter for VoiceSettings::NoiseSuppression.

Here is the call graph for this function:

◆ SetOutputVolume()

void discordpp::VoiceSettings::SetOutputVolume ( float OutputVolume)

Setter for VoiceSettings::OutputVolume.

Here is the call graph for this function:

◆ SetPttKey()

void discordpp::VoiceSettings::SetPttKey ( std::string PttKey)

Setter for VoiceSettings::PttKey.

Here is the call graph for this function:

◆ SetSelfDeaf()

void discordpp::VoiceSettings::SetSelfDeaf ( bool SelfDeaf)

Setter for VoiceSettings::SelfDeaf.

Here is the call graph for this function:

◆ SetSelfMute()

void discordpp::VoiceSettings::SetSelfMute ( bool SelfMute)

Setter for VoiceSettings::SelfMute.

Here is the call graph for this function:

Member Data Documentation

◆ nullobj

const VoiceSettings discordpp::VoiceSettings::nullobj
static

Uninitialized instance of VoiceSettings.

Definition at line 3218 of file discordpp.h.


The documentation for this class was generated from the following file: