Function CleanUp

Synopsis

#include <bta/include/bta_hearing_aid_api.h>

static void CleanUp()

Description

No description yet.

Source

Lines 1818-1830 in bta/hearing_aid/hearing_aid.cc. Line 215 in bta/include/bta_hearing_aid_api.h.

void HearingAid::CleanUp() {
  // Must stop audio source to make sure it doesn't call any of callbacks on our
  // soon to be  null instance
  HearingAidAudioSource::Stop();

  HearingAidImpl* ptr = instance;
  instance = nullptr;
  HearingAidAudioSource::CleanUp();

  ptr->CleanUp();

  delete ptr;
};





Add Discussion as Guest

Log in to DocsForge