Function Initialize

Synopsis

#include <bta/include/bta_hearing_aid_api.h>

static void Initialize()

Description

No description yet.

Source

Lines 390-400 in bta/hearing_aid/hearing_aid_audio_source.cc. Line 260 in bta/include/bta_hearing_aid_api.h.

void HearingAidAudioSource::Initialize() {
  auto stream_cb = bluetooth::audio::hearing_aid::StreamCallbacks{
      .on_resume_ = hearing_aid_on_resume_req,
      .on_suspend_ = hearing_aid_on_suspend_req,
  };
  if (!bluetooth::audio::hearing_aid::init(stream_cb, get_main_thread())) {
    LOG(WARNING) << __func__ << ": Using legacy HAL";
    uipc_hearing_aid = UIPC_Init();
    UIPC_Open(*uipc_hearing_aid, UIPC_CH_ID_AV_CTRL, hearing_aid_ctrl_cb, HEARING_AID_CTRL_PATH);
  }
}





Add Discussion as Guest

Log in to DocsForge