diff --git a/_analog_audio_e_s_p32_8h_source.html b/_analog_audio_e_s_p32_8h_source.html
index 0eb4dae09b..5b2f48c8ae 100644
--- a/_analog_audio_e_s_p32_8h_source.html
+++ b/_analog_audio_e_s_p32_8h_source.html
@@ -197,220 +197,222 @@
- 139 i2s_zero_dma_buffer(port_no);
-
-
- 142 if (adc_config.rx_tx_mode == RX_MODE){
- 143 i2s_adc_disable(port_no);
-
- 145 if (adc_config.uninstall_driver_on_end){
- 146 i2s_driver_uninstall(port_no);
- 147 is_driver_installed =
false;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 164 size_t write(
const uint8_t *src,
size_t size_bytes)
override {
-
-
-
- 168 if (size_bytes>0 && src!=
nullptr){
- 169 switch(adc_config.channels){
-
- 171 result = outputMono(src, size_bytes);
-
-
- 174 result = outputStereo(src, size_bytes);
-
-
- 177 LOGE(
"Unsupported number of channels: %d", adc_config.channels);
-
-
- 180 LOGD(
"converted write size: %d",result);
-
-
-
-
- 185 size_t readBytes(uint8_t *dest,
size_t size_bytes)
override {
-
-
- 188 if (i2s_read(port_no, dest, size_bytes, &result, portMAX_DELAY)!=ESP_OK){
-
-
-
- 192 if (adc_config.is_auto_center_read){
- 193 auto_center.convert(dest, result);
-
- 195 LOGD(
"%s - len: %d -> %d", __func__, size_bytes, result);
-
-
-
- 199 virtual int available()
override {
- 200 return active ? adc_config.buffer_size*adc_config.buffer_count : 0;
-
-
-
- 204 AnalogConfig adc_config;
- 205 ConverterAutoCenter auto_center;
-
-
- 208 bool is_driver_installed =
false;
-
-
-
-
- 213 adc1_channel_t adc_channel;
-
-
-
-
-
-
- 221 adc_unit = ADC_UNIT_1;
- 222 adc_channel = ADC1_GPIO32_CHANNEL;
-
-
- 225 adc_unit = ADC_UNIT_1;
- 226 adc_channel = ADC1_GPIO33_CHANNEL;
-
-
- 229 adc_unit = ADC_UNIT_1;
- 230 adc_channel = ADC1_GPIO34_CHANNEL;
-
-
- 233 adc_unit = ADC_UNIT_1;
- 234 adc_channel = ADC1_GPIO35_CHANNEL;
-
-
- 237 adc_unit = ADC_UNIT_1;
- 238 adc_channel = ADC1_GPIO36_CHANNEL;
-
-
- 241 adc_unit = ADC_UNIT_1;
- 242 adc_channel = ADC1_GPIO37_CHANNEL;
-
-
- 245 adc_unit = ADC_UNIT_1;
- 246 adc_channel = ADC1_GPIO38_CHANNEL;
-
-
- 249 adc_unit = ADC_UNIT_1;
- 250 adc_channel = ADC1_GPIO39_CHANNEL;
-
-
-
- 254 LOGE(
"%s - pin GPIO%d is not supported", __func__,gpio);
-
-
-
-
- 259 size_t outputStereo(
const void *src,
size_t size_bytes) {
-
- 261 size_t output_size = 0;
-
- 263 uint16_t *dst = (uint16_t *)src;
- 264 switch(adc_config.bits_per_sample){
-
- 266 int16_t *data=(int16_t *)src;
- 267 output_size = size_bytes;
- 268 for (
int j=0;j<size_bytes/2;j++){
- 269 dst[j] = convert8DAC(data[j], adc_config.bits_per_sample);
-
-
-
-
- 274 output_size = (size_bytes/3) * 2;
- 275 for (
int j=0;j<size_bytes/3;j++){
- 276 dst[j] = (uint32_t)convert8DAC(data[j], adc_config.bits_per_sample);
-
-
-
- 280 int32_t *data=(int32_t *)src;
- 281 output_size = (size_bytes/4) * 2;
- 282 for (
int j=0;j<size_bytes/4;j++){
- 283 dst[j] = convert8DAC(data[j], adc_config.bits_per_sample);
-
-
-
-
-
- 289 if (i2s_write(port_no, src, output_size, &result, portMAX_DELAY)!=ESP_OK){
- 290 LOGE(
"%s: %d", LOG_METHOD, output_size);
-
-
-
- 294 LOGD(
"i2s_write %d -> %d bytes", size_bytes, result);
-
-
-
+
+ 140 i2s_zero_dma_buffer(port_no);
+
+
+
+ 144 if (adc_config.rx_tx_mode == RX_MODE){
+ 145 i2s_adc_disable(port_no);
+
+ 147 if (adc_config.uninstall_driver_on_end){
+ 148 i2s_driver_uninstall(port_no);
+ 149 is_driver_installed =
false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 166 size_t write(
const uint8_t *src,
size_t size_bytes)
override {
+
+
+
+ 170 if (size_bytes>0 && src!=
nullptr){
+ 171 switch(adc_config.channels){
+
+ 173 result = outputMono(src, size_bytes);
+
+
+ 176 result = outputStereo(src, size_bytes);
+
+
+ 179 LOGE(
"Unsupported number of channels: %d", adc_config.channels);
+
+
+ 182 LOGD(
"converted write size: %d",result);
+
+
+
+
+ 187 size_t readBytes(uint8_t *dest,
size_t size_bytes)
override {
+
+
+ 190 if (i2s_read(port_no, dest, size_bytes, &result, portMAX_DELAY)!=ESP_OK){
+
+
+
+ 194 if (adc_config.is_auto_center_read){
+ 195 auto_center.convert(dest, result);
+
+ 197 LOGD(
"%s - len: %d -> %d", __func__, size_bytes, result);
+
+
+
+ 201 virtual int available()
override {
+ 202 return active ? adc_config.buffer_size*adc_config.buffer_count : 0;
+
+
+
+ 206 AnalogConfig adc_config;
+ 207 ConverterAutoCenter auto_center;
+
+
+ 210 bool is_driver_installed =
false;
+
+
+
+
+ 215 adc1_channel_t adc_channel;
+
+
+
+
+
+
+ 223 adc_unit = ADC_UNIT_1;
+ 224 adc_channel = ADC1_GPIO32_CHANNEL;
+
+
+ 227 adc_unit = ADC_UNIT_1;
+ 228 adc_channel = ADC1_GPIO33_CHANNEL;
+
+
+ 231 adc_unit = ADC_UNIT_1;
+ 232 adc_channel = ADC1_GPIO34_CHANNEL;
+
+
+ 235 adc_unit = ADC_UNIT_1;
+ 236 adc_channel = ADC1_GPIO35_CHANNEL;
+
+
+ 239 adc_unit = ADC_UNIT_1;
+ 240 adc_channel = ADC1_GPIO36_CHANNEL;
+
+
+ 243 adc_unit = ADC_UNIT_1;
+ 244 adc_channel = ADC1_GPIO37_CHANNEL;
+
+
+ 247 adc_unit = ADC_UNIT_1;
+ 248 adc_channel = ADC1_GPIO38_CHANNEL;
+
+
+ 251 adc_unit = ADC_UNIT_1;
+ 252 adc_channel = ADC1_GPIO39_CHANNEL;
+
+
+
+ 256 LOGE(
"%s - pin GPIO%d is not supported", __func__,gpio);
+
+
+
+
+ 261 size_t outputStereo(
const void *src,
size_t size_bytes) {
+
+ 263 size_t output_size = 0;
+
+ 265 uint16_t *dst = (uint16_t *)src;
+ 266 switch(adc_config.bits_per_sample){
+
+ 268 int16_t *data=(int16_t *)src;
+ 269 output_size = size_bytes;
+ 270 for (
int j=0;j<size_bytes/2;j++){
+ 271 dst[j] = convert8DAC(data[j], adc_config.bits_per_sample);
+
+
+
+
+ 276 output_size = (size_bytes/3) * 2;
+ 277 for (
int j=0;j<size_bytes/3;j++){
+ 278 dst[j] = (uint32_t)convert8DAC(data[j], adc_config.bits_per_sample);
+
+
+
+ 282 int32_t *data=(int32_t *)src;
+ 283 output_size = (size_bytes/4) * 2;
+ 284 for (
int j=0;j<size_bytes/4;j++){
+ 285 dst[j] = convert8DAC(data[j], adc_config.bits_per_sample);
+
+
+
+
+
+ 291 if (i2s_write(port_no, src, output_size, &result, portMAX_DELAY)!=ESP_OK){
+ 292 LOGE(
"%s: %d", LOG_METHOD, output_size);
+
+
+
+ 296 LOGD(
"i2s_write %d -> %d bytes", size_bytes, result);
+
-
- 300 size_t outputMono(
const void *src,
size_t size_bytes) {
-
- 302 size_t output_size = 0;
-
- 304 size_t resultTotal = 0;
- 305 switch(adc_config.bits_per_sample){
-
- 307 int16_t *data=(int16_t *)src;
- 308 for (
int j=0;j<size_bytes/2;j++){
- 309 out[0] = convert8DAC(data[j], adc_config.bits_per_sample);
-
- 311 if (i2s_write(port_no, out, 4, &result, portMAX_DELAY)!=ESP_OK){
- 312 LOGE(
"%s: %d", LOG_METHOD, output_size);
-
- 314 resultTotal += result;
-
-
-
-
- 319 for (
int j=0;j<size_bytes/3;j++){
- 320 out[0] = convert8DAC(data[j], adc_config.bits_per_sample);
-
- 322 if (i2s_write(port_no, out, 4, &result, portMAX_DELAY)!=ESP_OK){
- 323 LOGE(
"%s: %d", LOG_METHOD, output_size);
-
- 325 resultTotal += result;
-
-
-
- 329 int32_t *data=(int32_t *)src;
- 330 for (
int j=0;j<size_bytes/4;j++){
- 331 out[0] = convert8DAC(data[j], adc_config.bits_per_sample);
-
- 333 if (i2s_write(port_no, out, 4, &result, portMAX_DELAY)!=ESP_OK){
- 334 LOGE(
"%s: %d", LOG_METHOD, output_size);
-
- 336 resultTotal += result;
-
-
-
-
- 341 LOGD(
"i2s_write %d -> %d bytes", size_bytes, resultTotal);
-
-
-
-
-
-
+
+
+
+ 302 size_t outputMono(
const void *src,
size_t size_bytes) {
+
+ 304 size_t output_size = 0;
+
+ 306 size_t resultTotal = 0;
+ 307 switch(adc_config.bits_per_sample){
+
+ 309 int16_t *data=(int16_t *)src;
+ 310 for (
int j=0;j<size_bytes/2;j++){
+ 311 out[0] = convert8DAC(data[j], adc_config.bits_per_sample);
+
+ 313 if (i2s_write(port_no, out, 4, &result, portMAX_DELAY)!=ESP_OK){
+ 314 LOGE(
"%s: %d", LOG_METHOD, output_size);
+
+ 316 resultTotal += result;
+
+
+
+
+ 321 for (
int j=0;j<size_bytes/3;j++){
+ 322 out[0] = convert8DAC(data[j], adc_config.bits_per_sample);
+
+ 324 if (i2s_write(port_no, out, 4, &result, portMAX_DELAY)!=ESP_OK){
+ 325 LOGE(
"%s: %d", LOG_METHOD, output_size);
+
+ 327 resultTotal += result;
+
+
+
+ 331 int32_t *data=(int32_t *)src;
+ 332 for (
int j=0;j<size_bytes/4;j++){
+ 333 out[0] = convert8DAC(data[j], adc_config.bits_per_sample);
+
+ 335 if (i2s_write(port_no, out, 4, &result, portMAX_DELAY)!=ESP_OK){
+ 336 LOGE(
"%s: %d", LOG_METHOD, output_size);
+
+ 338 resultTotal += result;
+
+
+
+
+ 343 LOGD(
"i2s_write %d -> %d bytes", size_bytes, resultTotal);
+
+
+
+
-
+
+
+
-
-
+
+