13#include "BluetoothA2DPSink.h"
14#include "BluetoothA2DPSource.h"
108 cfg.
name=
"[Unknown]";
145 LOGE(
"a2dp_buffer resize failed");
151 LOGI(
"Using StartOnConnect")
157 LOGI(
"Starting a2dp_source...");
169 LOGD(
"waiting for connection");
172 LOGI(
"a2dp_source is connected...");
177 LOGI(
"a2dp_source started without connecting");
183 LOGI(
"Starting a2dp_sink...");
193 LOGD(
"waiting for connection");
196 LOGI(
"a2dp_sink is connected...");
199 LOGI(
"a2dp_sink started without connection");
205 LOGE(
"Undefined mode: %d", cfg.
mode);
213 if (
a2dp !=
nullptr) {
253 LOGD(
"Waiting for buffer: writing %d > available %d", (
int) len, (
int) free);
256 if (timeout <= 0)
return 0;
265 LOGD(
"write %d -> %d", len, result);
276 LOGW(
"readBytes failed because !is_a2dp_active");
279 LOGD(
"readBytes %d", len);
281 LOGI(
"readBytes %d->%d", len,result);
336 LOGW(
"found Device: %s rssi: %d", ssid,
rssi);
347 LOGW(
"==> state: %s", self->
a2dp->to_str(state));
354 if (data ==
nullptr || len == 0)
return 0;
377 for (
int j=0;
j<len/4;
j+=2){
#define LOGW(...)
Definition AudioLoggerIDF.h:29
#define TRACED()
Definition AudioLoggerIDF.h:31
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define assert(T)
Definition avr.h:10
RxTxMode
The Microcontroller is the Audio Source (TX_MODE) or Audio Sink (RX_MODE). RXTX_MODE is Source and Si...
Definition AudioTypes.h:30
@ TX_MODE
Definition AudioTypes.h:30
@ RX_MODE
Definition AudioTypes.h:30