From 2814e1ff5dbb82f7fc92183b119d2f66f2fcf01b Mon Sep 17 00:00:00 2001 From: Ben Xu Date: Thu, 20 Jun 2024 23:56:03 -0700 Subject: [PATCH] add mic buf count and len settings --- software/source/clients/esp32/src/client/client.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/software/source/clients/esp32/src/client/client.ino b/software/source/clients/esp32/src/client/client.ino index f88df53..ce8ced5 100644 --- a/software/source/clients/esp32/src/client/client.ino +++ b/software/source/clients/esp32/src/client/client.ino @@ -638,6 +638,8 @@ void InitI2SSpeakerOrMic(int mode) i2s_config.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM); i2s_config.sample_rate = MIC_SAMPLE_RATE; + i2s_config.dma_buf_count = 8; + i2s_config.dma_buf_len = 240; } else { @@ -876,4 +878,4 @@ void loop() M5.update(); webSocket.loop(); } -} +}