We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a6df3b commit 947a6b0Copy full SHA for 947a6b0
src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h
@@ -253,6 +253,7 @@ class I2SDriverESP32V1 {
253
// use the legicy size parameters for frame num
254
int size = cfg.buffer_size * cfg.buffer_count;
255
int frame_size = get_bits_eff(cfg.bits_per_sample) * cfg.channels / 8;
256
+ frame_size = (frame_size == 0) ? 1 : frame_size;
257
if (size > 0) result.dma_frame_num = size / frame_size;
258
LOGI("dma_frame_num: %d", (int)result.dma_frame_num);
259
result.auto_clear = cfg.auto_clear;
0 commit comments