Ring Daemon 16.0.0
Loading...
Searching...
No Matches
audio_device_monitor.h File Reference
Include dependency graph for audio_device_monitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AudioDeviceNotificationClient
 
struct  AudioDeviceNotificationClient_deleter
 

Typedefs

typedef std::unique_ptr< AudioDeviceNotificationClient, AudioDeviceNotificationClient_deleterAudioDeviceNotificationClientPtr
 
using DeviceEventCallback = std::function< void(const std::string &deviceName, DeviceEventType)>
 

Enumerations

enum class  DeviceEventType { BecameActive , BecameInactive , DefaultChanged , PropertyChanged }
 

Functions

std::string GetFriendlyNameFromIMMDeviceId (CComPtr< IMMDeviceEnumerator > enumerator, LPCWSTR deviceId)
 
std::string to_string (DeviceEventType type)
 

Typedef Documentation

◆ AudioDeviceNotificationClientPtr

◆ DeviceEventCallback

using DeviceEventCallback = std::function<void(const std::string& deviceName, DeviceEventType)>

Definition at line 53 of file audio_device_monitor.h.

Enumeration Type Documentation

◆ DeviceEventType

enum class DeviceEventType
strong
Enumerator
BecameActive 
BecameInactive 
DefaultChanged 
PropertyChanged 

Definition at line 37 of file audio_device_monitor.h.

Function Documentation

◆ GetFriendlyNameFromIMMDeviceId()

std::string GetFriendlyNameFromIMMDeviceId ( CComPtr< IMMDeviceEnumerator >  enumerator,
LPCWSTR  deviceId 
)

Definition at line 56 of file audio_device_monitor.h.

References jami::to_string().

Referenced by AudioDeviceNotificationClient::OnDefaultDeviceChanged(), and AudioDeviceNotificationClient::OnPropertyValueChanged().

Here is the call graph for this function:

◆ to_string()

std::string to_string ( DeviceEventType  type)
inline

Definition at line 39 of file audio_device_monitor.h.

References BecameActive, BecameInactive, DefaultChanged, and PropertyChanged.