Function Initialize

Synopsis

#include <bta/include/bta_hearing_aid_api.h>

static void Initialize(bluetooth::hearing_aid::HearingAidCallbacks *callbacks, base::Closure initCb)

Description

No description yet.

Source

Lines 1782-1791 in bta/hearing_aid/hearing_aid.cc. Line 213 in bta/include/bta_hearing_aid_api.h.

void HearingAid::Initialize(
    bluetooth::hearing_aid::HearingAidCallbacks* callbacks, Closure initCb) {
  if (instance) {
    LOG(ERROR) << "Already initialized!";
  }

  audioReceiver = &audioReceiverImpl;
  instance = new HearingAidImpl(callbacks, initCb);
  HearingAidAudioSource::Initialize();
}





Add Discussion as Guest

Log in to DocsForge