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

Represents a single input or output audio device available to the user. More...

#include <discordpp.h>

Collaboration diagram for discordpp::AudioDevice:
[legend]

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ AudioDevice() [1/2]

discordpp::AudioDevice::AudioDevice ( AudioDevice && other)
noexcept

Move constructor for AudioDevice.

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

◆ AudioDevice() [2/2]

discordpp::AudioDevice::AudioDevice ( const AudioDevice & arg0)

Copy constructor for AudioDevice.

Here is the call graph for this function:

Member Function Documentation

◆ Equals()

bool discordpp::AudioDevice::Equals ( discordpp::AudioDevice rhs)

Compares the ID of two AudioDevice objects for equality.

◆ Id()

std::string discordpp::AudioDevice::Id ( ) const

The ID of the audio device.

Here is the caller graph for this function:

◆ IsDefault()

bool discordpp::AudioDevice::IsDefault ( ) const

Whether the audio device is the system default device.

Here is the caller graph for this function:

◆ Name()

std::string discordpp::AudioDevice::Name ( ) const

The display name of the audio device.

Here is the caller graph for this function:

◆ operator bool()

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

Returns true if the instance contains a valid object.

Definition at line 3165 of file discordpp.h.

◆ operator=() [1/2]

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

Move assignment operator for AudioDevice.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Copy assignment operator for AudioDevice.

Here is the call graph for this function:

◆ SetId()

void discordpp::AudioDevice::SetId ( std::string Id)

Setter for AudioDevice::Id.

Here is the call graph for this function:

◆ SetIsDefault()

void discordpp::AudioDevice::SetIsDefault ( bool IsDefault)

Setter for AudioDevice::IsDefault.

Here is the call graph for this function:

◆ SetName()

void discordpp::AudioDevice::SetName ( std::string Name)

Setter for AudioDevice::Name.

Here is the call graph for this function:

Member Data Documentation

◆ nullobj

const AudioDevice discordpp::AudioDevice::nullobj
static

Uninitialized instance of AudioDevice.

Definition at line 3163 of file discordpp.h.


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