Function DebugDump

Synopsis

#include <bta/include/bta_hearing_aid_api.h>

static void DebugDump(int fd)

Description

No description yet.

Source

Lines 411-427 in bta/hearing_aid/hearing_aid_audio_source.cc. Line 262 in bta/include/bta_hearing_aid_api.h.

void HearingAidAudioSource::DebugDump(int fd) {
  uint64_t now_us = bluetooth::common::time_get_os_boottime_us();
  std::stringstream stream;
  stream << "  Hearing Aid Audio HAL:"
         << "\n    Counts (underflow)                                      : "
         << stats.media_read_total_underflow_count
         << "\n    Bytes (underflow)                                       : "
         << stats.media_read_total_underflow_bytes
         << "\n    Last update time ago in ms (underflow)                  : "
         << (stats.media_read_last_underflow_us > 0
                 ? (unsigned long long)(now_us -
                                        stats.media_read_last_underflow_us) /
                       1000
                 : 0)
         << std::endl;
  dprintf(fd, "%s", stream.str().c_str());
}





Add Discussion as Guest

Log in to DocsForge