AV module
WindowsDeviceWatcher
Monitors device add/remove events via IMMNotificationClient (audio) and RegisterDeviceNotification (video).
WindowsDeviceWatcher
#include <icy/av/win32/mediafoundation.h>Inherits:
DeviceWatcher
Monitors device add/remove events via IMMNotificationClient (audio) and RegisterDeviceNotification (video).
Public Methods
| Return | Name | Description |
|---|---|---|
WindowsDeviceWatcher explicit | #### Parameters | |
bool | start virtual | Begin monitoring via IMMNotificationClient and RegisterDeviceNotification. |
void | stop virtual | Stop monitoring and unregister all device notifications. |
WindowsDeviceWatcher
explicit
explicit WindowsDeviceWatcher(DeviceManager * manager)Parameters
managerThe DeviceManager whose DevicesChanged signal will be emitted on changes.
start
virtual
virtual bool start()Begin monitoring via IMMNotificationClient and RegisterDeviceNotification.
Returns
True if monitoring was successfully started.
stop
virtual
virtual void stop()Stop monitoring and unregister all device notifications.
Private Attributes
_impl
std::unique_ptr< Impl > _impl_manager
DeviceManager * _manager