Ring Daemon 16.0.0
Loading...
Searching...
No Matches
AudioDeviceNotificationClient Class Reference

#include <audio_device_monitor.h>

Inheritance diagram for AudioDeviceNotificationClient:
Inheritance graph
Collaboration diagram for AudioDeviceNotificationClient:
Collaboration graph

Public Member Functions

ULONG STDMETHODCALLTYPE AddRef () override
 
 AudioDeviceNotificationClient ()
 
HRESULT STDMETHODCALLTYPE OnDefaultDeviceChanged (EDataFlow flow, ERole role, LPCWSTR deviceId) override
 
HRESULT STDMETHODCALLTYPE OnDeviceAdded (LPCWSTR deviceId) override
 
HRESULT STDMETHODCALLTYPE OnDeviceRemoved (LPCWSTR deviceId) override
 
HRESULT STDMETHODCALLTYPE OnDeviceStateChanged (LPCWSTR deviceId, DWORD newState) override
 
HRESULT STDMETHODCALLTYPE OnPropertyValueChanged (LPCWSTR deviceId, const PROPERTYKEY key) override
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppv) override
 
ULONG STDMETHODCALLTYPE Release () override
 
void setDeviceEventCallback (DeviceEventCallback callback)
 
 ~AudioDeviceNotificationClient ()
 

Detailed Description

Definition at line 82 of file audio_device_monitor.h.

Constructor & Destructor Documentation

◆ AudioDeviceNotificationClient()

AudioDeviceNotificationClient::AudioDeviceNotificationClient ( )
inline

Definition at line 87 of file audio_device_monitor.h.

References JAMI_ERR.

◆ ~AudioDeviceNotificationClient()

AudioDeviceNotificationClient::~AudioDeviceNotificationClient ( )
inline

Definition at line 102 of file audio_device_monitor.h.

Member Function Documentation

◆ AddRef()

ULONG STDMETHODCALLTYPE AudioDeviceNotificationClient::AddRef ( )
inlineoverride

Definition at line 126 of file audio_device_monitor.h.

Referenced by QueryInterface().

◆ OnDefaultDeviceChanged()

HRESULT STDMETHODCALLTYPE AudioDeviceNotificationClient::OnDefaultDeviceChanged ( EDataFlow  flow,
ERole  role,
LPCWSTR  deviceId 
)
inlineoverride

Definition at line 173 of file audio_device_monitor.h.

References DefaultChanged, and GetFriendlyNameFromIMMDeviceId().

Here is the call graph for this function:

◆ OnDeviceAdded()

HRESULT STDMETHODCALLTYPE AudioDeviceNotificationClient::OnDeviceAdded ( LPCWSTR  deviceId)
inlineoverride

Definition at line 159 of file audio_device_monitor.h.

◆ OnDeviceRemoved()

HRESULT STDMETHODCALLTYPE AudioDeviceNotificationClient::OnDeviceRemoved ( LPCWSTR  deviceId)
inlineoverride

Definition at line 166 of file audio_device_monitor.h.

◆ OnDeviceStateChanged()

HRESULT STDMETHODCALLTYPE AudioDeviceNotificationClient::OnDeviceStateChanged ( LPCWSTR  deviceId,
DWORD  newState 
)
inlineoverride

Definition at line 153 of file audio_device_monitor.h.

◆ OnPropertyValueChanged()

HRESULT STDMETHODCALLTYPE AudioDeviceNotificationClient::OnPropertyValueChanged ( LPCWSTR  deviceId,
const PROPERTYKEY  key 
)
inlineoverride

Definition at line 187 of file audio_device_monitor.h.

References GetFriendlyNameFromIMMDeviceId(), JAMI_DBG, and PropertyChanged.

Here is the call graph for this function:

◆ QueryInterface()

HRESULT STDMETHODCALLTYPE AudioDeviceNotificationClient::QueryInterface ( REFIID  riid,
void **  ppv 
)
inlineoverride

Definition at line 141 of file audio_device_monitor.h.

References AddRef().

Here is the call graph for this function:

◆ Release()

ULONG STDMETHODCALLTYPE AudioDeviceNotificationClient::Release ( )
inlineoverride

◆ setDeviceEventCallback()

void AudioDeviceNotificationClient::setDeviceEventCallback ( DeviceEventCallback  callback)
inline

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