AV module
AppleDeviceWatcher
Monitors device add/remove events via AVFoundation notifications and CoreAudio property listeners.
AppleDeviceWatcher
#include <icy/av/apple/coreaudio.h>Inherits:
DeviceWatcher
Monitors device add/remove events via AVFoundation notifications and CoreAudio property listeners.
Public Methods
| Return | Name | Description |
|---|---|---|
AppleDeviceWatcher explicit | #### Parameters | |
bool | start virtual | Begin monitoring for device connect/disconnect events. |
void | stop virtual | Stop monitoring and release all notification observers. |
AppleDeviceWatcher
explicit
explicit AppleDeviceWatcher(DeviceManager * manager)Parameters
managerThe DeviceManager whose DevicesChanged signal will be emitted on changes.
start
virtual
virtual bool start()Begin monitoring for device connect/disconnect events.
Returns
True if monitoring was successfully started.
stop
virtual
virtual void stop()Stop monitoring and release all notification observers.
Private Attributes
_impl
std::unique_ptr< Impl > _impl_manager
DeviceManager * _manager