diff --git a/_a2_d_p_stream_8h_source.html b/_a2_d_p_stream_8h_source.html
index d5dcfca66..f1dcbf229 100644
--- a/_a2_d_p_stream_8h_source.html
+++ b/_a2_d_p_stream_8h_source.html
@@ -309,93 +309,97 @@
-
-
- 292 BluetoothA2DPSource *a2dp_source =
nullptr;
- 293 BluetoothA2DPSink *a2dp_sink =
nullptr;
- 294 BluetoothA2DPCommon *a2dp=
nullptr;
- 295 const int A2DP_MAX_VOL = 128;
-
-
- 298 static bool detected_device(
const char* ssid, esp_bd_addr_t address,
int rssi){
- 299 LOGW(
"found Device: %s rssi: %d", ssid, rssi);
-
-
-
-
- 304 static void a2dp_state_callback(esp_a2d_connection_state_t state,
void *caller){
-
- 306 A2DPStream *
self = (A2DPStream*)caller;
- 307 if (state==ESP_A2D_CONNECTION_STATE_CONNECTED && self->config.startup_logic==StartOnConnect){
- 308 is_a2dp_active =
true;
-
- 310 LOGW(
"==> state: %s", self->a2dp->to_str(state));
-
-
-
-
- 315 static int32_t a2dp_stream_source_sound_data(uint8_t* data, int32_t len) {
- 316 int32_t result_len = 0;
- 317 A2DPConfig config = A2DPStream_self->config;
+
+
+
+
+
+
+ 297 BluetoothA2DPSource *a2dp_source =
nullptr;
+ 298 BluetoothA2DPSink *a2dp_sink =
nullptr;
+ 299 BluetoothA2DPCommon *a2dp=
nullptr;
+ 300 const int A2DP_MAX_VOL = 128;
+
+
+ 303 static bool detected_device(
const char* ssid, esp_bd_addr_t address,
int rssi){
+ 304 LOGW(
"found Device: %s rssi: %d", ssid, rssi);
+
+
+
+
+ 309 static void a2dp_state_callback(esp_a2d_connection_state_t state,
void *caller){
+
+ 311 A2DPStream *
self = (A2DPStream*)caller;
+ 312 if (state==ESP_A2D_CONNECTION_STATE_CONNECTED && self->config.startup_logic==StartOnConnect){
+ 313 is_a2dp_active =
true;
+
+ 315 LOGW(
"==> state: %s", self->a2dp->to_str(state));
+
+
-
-
-
-
- 323 result_len = a2dp_buffer.
readArray((uint8_t*)data, len);
-
-
- 326 if (config.silence_on_nodata && result_len == 0){
-
-
-
-
-
-
- 333 switch (config.startup_nodata) {
-
- 335 memset(data, 0, len);
-
-
- 338 int16_t *data16 = (int16_t*)data;
- 339 for (
int j=0;j<len/4;j+=2){
- 340 data16[j+1] = data16[j] = (rand() % 50) - 25;
-
-
-
-
-
-
-
-
-
- 350 LOGD(
"a2dp_stream_source_sound_data: %d -> %d", len, result_len);
-
-
+
+ 320 static int32_t a2dp_stream_source_sound_data(uint8_t* data, int32_t len) {
+ 321 int32_t result_len = 0;
+ 322 A2DPConfig config = A2DPStream_self->config;
+
+
+
+
+
+ 328 result_len = a2dp_buffer.
readArray((uint8_t*)data, len);
+
+
+ 331 if (config.silence_on_nodata && result_len == 0){
+
+
+
+
+
+
+ 338 switch (config.startup_nodata) {
+
+ 340 memset(data, 0, len);
+
+
+ 343 int16_t *data16 = (int16_t*)data;
+ 344 for (
int j=0;j<len/4;j+=2){
+ 345 data16[j+1] = data16[j] = (rand() % 50) - 25;
+
+
+
+
+
+
+
-
-
- 357 uint32_t result_len = a2dp_buffer.
writeArray(data, len);
- 358 LOGD(
"a2dp_stream_sink_sound_data %d -> %d", len, result_len);
-
-
-
-
-
-
-
-
- 368 notifyAudioChange(info);
-
-
-
-
-
-
-
-
-
-
+
+ 355 LOGD(
"a2dp_stream_source_sound_data: %d -> %d", len, result_len);
+
+
+
+
+
+ 362 uint32_t result_len = a2dp_buffer.
writeArray(data, len);
+ 363 LOGD(
"a2dp_stream_sink_sound_data %d -> %d", len, result_len);
+
+
+
+
+
+
+
+
+ 373 notifyAudioChange(info);
+
+
+
+
+
+
+
+
+
+
@@ -404,16 +408,17 @@
-
+
-
+
-
+
+
diff --git a/classaudio__tools_1_1_a2_d_p_stream-members.html b/classaudio__tools_1_1_a2_d_p_stream-members.html
index 77afb0f88..c512ba74e 100644
--- a/classaudio__tools_1_1_a2_d_p_stream-members.html
+++ b/classaudio__tools_1_1_a2_d_p_stream-members.html
@@ -119,19 +119,20 @@
sample_rate_callback(uint16_t rate) | A2DPStream | inlineprotectedstatic |
setAudioInfo(AudioInfo newInfo) override | AudioStream | inlinevirtual |
setNotifyActive(bool flag) | AudioInfoSource | inline |
- setVolume(float volume) override | A2DPStream | inlinevirtual |
- sink() | A2DPStream | inline |
- source() | A2DPStream | inline |
- tmp_in (defined in BaseStream) | BaseStream | protected |
- tmp_out (defined in BaseStream) | BaseStream | protected |
- volume() | VolumeSupport | inlinevirtual |
- volume_value (defined in VolumeSupport) | VolumeSupport | protected |
- write(const uint8_t *data, size_t len) override | A2DPStream | inlinevirtual |
- write(uint8_t ch) override (defined in BaseStream) | BaseStream | inlinevirtual |
- writeSilence(size_t len) | AudioStream | inlinevirtual |
- ~A2DPStream() | A2DPStream | inline |
- ~AudioStream()=default (defined in AudioStream) | AudioStream | virtual |
- ~BaseStream()=default (defined in BaseStream) | BaseStream | virtual |
+ setSilenceOnNoData(bool silence) | A2DPStream | inline |
+ setVolume(float volume) override | A2DPStream | inlinevirtual |
+ sink() | A2DPStream | inline |
+ source() | A2DPStream | inline |
+ tmp_in (defined in BaseStream) | BaseStream | protected |
+ tmp_out (defined in BaseStream) | BaseStream | protected |
+ volume() | VolumeSupport | inlinevirtual |
+ volume_value (defined in VolumeSupport) | VolumeSupport | protected |
+ write(const uint8_t *data, size_t len) override | A2DPStream | inlinevirtual |
+ write(uint8_t ch) override (defined in BaseStream) | BaseStream | inlinevirtual |
+ writeSilence(size_t len) | AudioStream | inlinevirtual |
+ ~A2DPStream() | A2DPStream | inline |
+ ~AudioStream()=default (defined in AudioStream) | AudioStream | virtual |
+ ~BaseStream()=default (defined in BaseStream) | BaseStream | virtual |