class DeviceRegistry

Defined at line 20 of file ../../src/media/audio/audio_core/device_registry.h

Public Methods

void AddDevice (const std::shared_ptr<AudioDevice> & device)

Begin initializing a device and add it to the set of devices waiting to be initialized.

Called from the plug detector when a new stream device first shows up.

void ActivateDevice (const std::shared_ptr<AudioDevice> & device)

Move device from pending-init list to active-devices list. Notify users and re-evaluate policy.

void RemoveDevice (const std::shared_ptr<AudioDevice> & device)

Shutdown this device; remove it from the appropriate set of active devices.

void OnPlugStateChanged (const std::shared_ptr<AudioDevice> & device, bool plugged, zx::time plug_time)

Handles a plugged/unplugged state change for the supplied audio device.

void ~DeviceRegistry ()

Defined at line 22 of file ../../src/media/audio/audio_core/device_registry.h