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

ReturnNameDescription
WindowsDeviceWatcher explicit#### Parameters
boolstart virtualBegin monitoring via IMMNotificationClient and RegisterDeviceNotification.
voidstop virtualStop monitoring and unregister all device notifications.

WindowsDeviceWatcher

explicit

explicit WindowsDeviceWatcher(DeviceManager * manager)

Parameters

  • manager The 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

ReturnNameDescription
std::unique_ptr< Impl >_impl
DeviceManager *_manager

_impl

std::unique_ptr< Impl > _impl

_manager

DeviceManager * _manager