class DeviceDetector

Defined at line 30 of file ../../src/media/audio/services/device_registry/device_detector.h

This class detects devices and invokes the provided handler for those devices. It uses multiple

file-system watchers that focus on the device file system (devfs), specifically the locations

where registered audio devices are exposed (dev/class/audio-composite, etc).

Public Methods

zx::result<std::shared_ptr<DeviceDetector>> Create (DeviceDetectionHandler handler, DeviceDetectionIdleHandler idle_handler, async_dispatcher_t * dispatcher)

Immediately kick off watchers in 'devfs' directories where audio devices are found.

Upon detection, our DeviceDetectionHandler is run on the dispatcher's thread.

Defined at line 24 of file ../../src/media/audio/services/device_registry/device_detector.cc

void ~DeviceDetector ()

Defined at line 48 of file ../../src/media/audio/services/device_registry/device_detector.h