Function Start

Synopsis

#include <bta/include/bta_hearing_aid_api.h>

static void Start(const CodecConfiguration &codecConfiguration, HearingAidAudioReceiver *audioReceiver, uint16_t remote_delay_ms)

Description

No description yet.

Source

Lines 361-377 in bta/hearing_aid/hearing_aid_audio_source.cc. Line 256 in bta/include/bta_hearing_aid_api.h.

void HearingAidAudioSource::Start(const CodecConfiguration& codecConfiguration,
                                  HearingAidAudioReceiver* audioReceiver,
                                  uint16_t remote_delay_ms) {
  LOG(INFO) << __func__ << ": Hearing Aid Source Open";

  bit_rate = codecConfiguration.bit_rate;
  sample_rate = codecConfiguration.sample_rate;
  data_interval_ms = codecConfiguration.data_interval_ms;

  stats.Reset();

  if (bluetooth::audio::hearing_aid::is_hal_2_0_enabled()) {
    bluetooth::audio::hearing_aid::start_session();
    bluetooth::audio::hearing_aid::set_remote_delay(remote_delay_ms);
  }
  localAudioReceiver = audioReceiver;
}





Add Discussion as Guest

Log in to DocsForge