add mic buf count and len settings
This commit is contained in:
parent
2d15bae1ad
commit
2814e1ff5d
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue