![]() |
Rise
The Vieneo Province
|
Represents a single input or output audio device available to the user. More...
#include <discordpp.h>
Public Member Functions | |
| AudioDevice (AudioDevice &&other) noexcept | |
| Move constructor for AudioDevice. | |
| AudioDevice & | operator= (AudioDevice &&other) noexcept |
| Move assignment operator for AudioDevice. | |
| operator bool () const | |
| Returns true if the instance contains a valid object. | |
| AudioDevice (const AudioDevice &arg0) | |
| Copy constructor for AudioDevice. | |
| AudioDevice & | operator= (const AudioDevice &arg0) |
| Copy assignment operator for AudioDevice. | |
| bool | Equals (discordpp::AudioDevice rhs) |
| Compares the ID of two AudioDevice objects for equality. | |
| std::string | Id () const |
| The ID of the audio device. | |
| void | SetId (std::string Id) |
| Setter for AudioDevice::Id. | |
| std::string | Name () const |
| The display name of the audio device. | |
| void | SetName (std::string Name) |
| Setter for AudioDevice::Name. | |
| bool | IsDefault () const |
| Whether the audio device is the system default device. | |
| void | SetIsDefault (bool IsDefault) |
| Setter for AudioDevice::IsDefault. | |
Static Public Attributes | |
| static const AudioDevice | nullobj |
| Uninitialized instance of AudioDevice. | |
Represents a single input or output audio device available to the user.
Discord will initialize the audio engine with the system default input and output devices. You can change the device through the Client by passing the id of the desired audio device.
Definition at line 3144 of file discordpp.h.
|
noexcept |
Move constructor for AudioDevice.
| discordpp::AudioDevice::AudioDevice | ( | const AudioDevice & | arg0 | ) |
| bool discordpp::AudioDevice::Equals | ( | discordpp::AudioDevice | rhs | ) |
Compares the ID of two AudioDevice objects for equality.
| std::string discordpp::AudioDevice::Id | ( | ) | const |
The ID of the audio device.
| bool discordpp::AudioDevice::IsDefault | ( | ) | const |
Whether the audio device is the system default device.
| std::string discordpp::AudioDevice::Name | ( | ) | const |
The display name of the audio device.
|
inline |
Returns true if the instance contains a valid object.
Definition at line 3165 of file discordpp.h.
|
noexcept |
| AudioDevice & discordpp::AudioDevice::operator= | ( | const AudioDevice & | arg0 | ) |
| void discordpp::AudioDevice::SetId | ( | std::string | Id | ) |
| void discordpp::AudioDevice::SetIsDefault | ( | bool | IsDefault | ) |
| void discordpp::AudioDevice::SetName | ( | std::string | Name | ) |
|
static |
Uninitialized instance of AudioDevice.
Definition at line 3163 of file discordpp.h.