src/media/audio/audio_core/audio_device_manager.cc
// Configure this admin singleton object to manage audio device instances.
Configure this admin singleton object to manage audio device instances.
Configure this admin singleton object to manage audio device instances .
zx_status_t AudioDeviceManager::Init() {
  TRACE_DURATION("audio", "AudioDeviceManager::Init");
  zx_status_t res =
      plug_detector_->Start(fit::bind_member(this, &AudioDeviceManager::AddDeviceByVersion));
  if (res != ZX_OK) {
    FX_PLOGS(ERROR, res) << "AudioDeviceManager failed to start plug detector";
    return res;
  }
  return ZX_OK;
}
zx_status_t AudioDeviceManager :: Init ( ) { TRACE_DURATION ( " " , " " ) ; zx_status_t res = plug_detector_ -> Start ( fit :: bind_member ( this , & AudioDeviceManager :: AddDeviceByVersion ) ) ; if ( res != ZX_OK ) { FX_PLOGS ( ERROR , res ) << " " ; return res ; } return ZX_OK ; }
Configure this admin singleton object to manage audio device instances.
Configure this admin singleton object to manage audio device instances .
// Start monitoring for plug/unplug events of pluggable audio output devices.