Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
CMMNotificationClient Class Reference
+ Inheritance diagram for CMMNotificationClient:
+ Collaboration diagram for CMMNotificationClient:

Public Member Functions

 CMMNotificationClient (QWindowsMediaDevices *windowsMediaDevices, ComPtr< IMMDeviceEnumerator > enumerator, QMap< QString, DWORD > &&deviceState)
 
HRESULT STDMETHODCALLTYPE OnDefaultDeviceChanged (EDataFlow flow, ERole role, LPCWSTR) 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, const PROPERTYKEY) override
 
void emitAudioDevicesChanged (EDataFlow flow)
 
void emitAudioDevicesChanged (LPCWSTR deviceID)
 

Private Member Functions

 ~CMMNotificationClient () override=default
 

Detailed Description

Definition at line 27 of file qwindowsmediadevices.cpp.

Constructor & Destructor Documentation

◆ CMMNotificationClient()

CMMNotificationClient::CMMNotificationClient ( QWindowsMediaDevices * windowsMediaDevices,
ComPtr< IMMDeviceEnumerator > enumerator,
QMap< QString, DWORD > && deviceState )
inline

Definition at line 34 of file qwindowsmediadevices.cpp.

Member Function Documentation

◆ ~CMMNotificationClient()

CMMNotificationClient::~CMMNotificationClient ( )
overrideprivatedefault

◆ emitAudioDevicesChanged() [1/2]

void CMMNotificationClient::emitAudioDevicesChanged ( EDataFlow flow)
inline

Definition at line 92 of file qwindowsmediadevices.cpp.

References QPlatformMediaDevices::audioInputsChanged(), QPlatformMediaDevices::audioOutputsChanged(), and emit.

Referenced by emitAudioDevicesChanged(), OnDefaultDeviceChanged(), OnDeviceAdded(), OnDeviceRemoved(), and OnDeviceStateChanged().

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

◆ emitAudioDevicesChanged() [2/2]

void CMMNotificationClient::emitAudioDevicesChanged ( LPCWSTR deviceID)
inline

Definition at line 102 of file qwindowsmediadevices.cpp.

References device, and emitAudioDevicesChanged().

+ Here is the call graph for this function:

◆ OnDefaultDeviceChanged()

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

Definition at line 42 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged().

+ Here is the call graph for this function:

◆ OnDeviceAdded()

HRESULT STDMETHODCALLTYPE CMMNotificationClient::OnDeviceAdded ( LPCWSTR deviceID)
inlineoverride

Definition at line 50 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged(), QString::fromWCharArray(), and it.

+ Here is the call graph for this function:

◆ OnDeviceRemoved()

HRESULT STDMETHODCALLTYPE CMMNotificationClient::OnDeviceRemoved ( LPCWSTR deviceID)
inlineoverride

Definition at line 61 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged(), QString::fromWCharArray(), and it.

+ Here is the call graph for this function:

◆ OnDeviceStateChanged()

HRESULT STDMETHODCALLTYPE CMMNotificationClient::OnDeviceStateChanged ( LPCWSTR deviceID,
DWORD newState )
inlineoverride

Definition at line 74 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged(), QString::fromWCharArray(), it, and newState().

+ Here is the call graph for this function:

◆ OnPropertyValueChanged()

HRESULT STDMETHODCALLTYPE CMMNotificationClient::OnPropertyValueChanged ( LPCWSTR ,
const PROPERTYKEY  )
inlineoverride

Definition at line 87 of file qwindowsmediadevices.cpp.


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