******************************************************************************/
#define LOG_TAG "bt_btif_a2dp_source"
+#define ATRACE_TAG ATRACE_TAG_AUDIO
#include <base/logging.h>
+#include <cutils/trace.h>
#include <limits.h>
#include <string.h>
#include <algorithm>
if (alarm_is_scheduled(btif_a2dp_source_cb.media_alarm)) {
CHECK(btif_a2dp_source_cb.encoder_interface != NULL);
+ size_t transmit_queue_length =
+ fixed_queue_length(btif_a2dp_source_cb.tx_audio_queue);
+ ATRACE_INT("btif TX queue", transmit_queue_length);
if (btif_a2dp_source_cb.encoder_interface->set_transmit_queue_length !=
NULL) {
- size_t transmit_queue_length =
- fixed_queue_length(btif_a2dp_source_cb.tx_audio_queue);
btif_a2dp_source_cb.encoder_interface->set_transmit_queue_length(
transmit_queue_length);
}
*/
#define LOG_TAG "a2dp_vendor_ldac_encoder"
+#define ATRACE_TAG ATRACE_TAG_AUDIO
#include "a2dp_vendor_ldac_encoder.h"
+#include <cutils/trace.h>
#include <dlfcn.h>
#include <inttypes.h>
#include <stdio.h>
a2dp_ldac_encoder_cb.TxQueueLength, flag_enable);
if (prev_eqmid != a2dp_ldac_encoder_cb.last_ldac_abr_eqmid)
a2dp_ldac_encoder_cb.ldac_abr_adjustments++;
+ ATRACE_INT("LDAC ABR level", a2dp_ldac_encoder_cb.last_ldac_abr_eqmid);
}
// Transcode frame and enqueue
a2dp_ldac_encode_frames(nb_frame);