File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class I2SConfigESP32V1 : public AudioInfo {
65
65
// / not used any more
66
66
int buffer_size = I2S_BUFFER_SIZE;
67
67
bool use_apll = I2S_USE_APLL;
68
+ bool auto_clear = I2S_AUTO_CLEAR;
68
69
// / Select left or right channel when channels == 1
69
70
I2SChannelSelect channel_format = I2SChannelSelect::Default;
70
71
// / masterclock multiple (-1 = use default)
@@ -81,6 +82,7 @@ class I2SConfigESP32V1 : public AudioInfo {
81
82
LOGI (" signal_type: %s" , i2s_signal_types[signal_type]);
82
83
LOGI (" buffer_count:%d" , buffer_count);
83
84
LOGI (" buffer_size:%d" , buffer_size);
85
+ LOGI (" auto_clear: %s" ,auto_clear? " true" : " false" );
84
86
if (signal_type==Digital){
85
87
LOGI (" i2s_format: %s" , i2s_formats[i2s_format]);
86
88
}
Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ class I2SDriverESP32V1 {
203
203
int frame_size = cfg.bits_per_sample * cfg.channels / 8 ;
204
204
if (size > 0 ) result.dma_frame_num = size / frame_size;
205
205
LOGI (" dma_frame_num: %d" , result.dma_frame_num );
206
+ result.auto_clear = cfg.auto_clear ;
206
207
return result;
207
208
}
208
209
You can’t perform that action at this time.
0 commit comments