Qt 6.x
The Qt SDK
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)
 
virtual ~CMMNotificationClient ()
 
ULONG STDMETHODCALLTYPE AddRef () override
 
ULONG STDMETHODCALLTYPE Release () override
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, VOID **ppvInterface) override
 
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)
 

Detailed Description

Definition at line 25 of file qwindowsmediadevices.cpp.

Constructor & Destructor Documentation

◆ CMMNotificationClient()

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

Definition at line 33 of file qwindowsmediadevices.cpp.

◆ ~CMMNotificationClient()

virtual CMMNotificationClient::~CMMNotificationClient ( )
inlinevirtual

Definition at line 42 of file qwindowsmediadevices.cpp.

Member Function Documentation

◆ AddRef()

ULONG STDMETHODCALLTYPE CMMNotificationClient::AddRef ( )
inlineoverride

Definition at line 45 of file qwindowsmediadevices.cpp.

Referenced by QueryInterface().

+ Here is the caller graph for this function:

◆ emitAudioDevicesChanged() [1/2]

void CMMNotificationClient::emitAudioDevicesChanged ( EDataFlow  flow)
inline

Definition at line 124 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 134 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 74 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 82 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged(), QMap< Key, T >::find(), QString::fromWCharArray(), QMap< Key, T >::insert(), and it.

+ Here is the call graph for this function:

◆ OnDeviceRemoved()

HRESULT STDMETHODCALLTYPE CMMNotificationClient::OnDeviceRemoved ( LPCWSTR  deviceID)
inlineoverride

Definition at line 93 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged(), QMap< Key, T >::find(), QString::fromWCharArray(), it, and QMap< Key, T >::remove().

+ Here is the call graph for this function:

◆ OnDeviceStateChanged()

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

Definition at line 106 of file qwindowsmediadevices.cpp.

References emitAudioDevicesChanged(), QMap< Key, T >::find(), 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 119 of file qwindowsmediadevices.cpp.

◆ QueryInterface()

HRESULT STDMETHODCALLTYPE CMMNotificationClient::QueryInterface ( REFIID  riid,
VOID **  ppvInterface 
)
inlineoverride

Definition at line 59 of file qwindowsmediadevices.cpp.

References AddRef(), and riid.

+ Here is the call graph for this function:

◆ Release()

ULONG STDMETHODCALLTYPE CMMNotificationClient::Release ( )
inlineoverride

Definition at line 50 of file qwindowsmediadevices.cpp.


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