Discord Social SDK
|
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.
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. | |
|
noexcept |
Move constructor for AudioDevice.
discordpp::AudioDevice::AudioDevice | ( | const AudioDevice & | arg0 | ) |
Copy constructor for AudioDevice.
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.
|
noexcept |
Move assignment operator for AudioDevice.
AudioDevice & discordpp::AudioDevice::operator= | ( | const AudioDevice & | arg0 | ) |
Copy assignment operator for AudioDevice.
void discordpp::AudioDevice::SetId | ( | std::string | Id | ) |
Setter for AudioDevice::Id.
void discordpp::AudioDevice::SetIsDefault | ( | bool | IsDefault | ) |
Setter for AudioDevice::IsDefault.
void discordpp::AudioDevice::SetName | ( | std::string | Name | ) |
Setter for AudioDevice::Name.
|
static |
Uninitialized instance of AudioDevice.