Skip to content

Commit

Permalink
LOG dma_frame_num
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Sep 21, 2024
1 parent 99b6a07 commit 6e50e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AudioI2S/I2SESP32V1.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class I2SDriverESP32V1 {
int size = cfg.buffer_size * cfg.buffer_count;
int frame_size = cfg.bits_per_sample * cfg.channels / 8;
if (size > 0) result.dma_frame_num = size / frame_size;
LOGI("dma_frame_num: %d", result.dma_frame_num);
return result;
}

Expand Down

0 comments on commit 6e50e6e

Please sign in to comment.