espressif / esp-adf

Espressif Audio Development Framework
Other
1.49k stars 667 forks source link

esp-adf for micropython error: i2s_config #1178

Closed windtersharp closed 3 months ago

windtersharp commented 3 months ago

When compiling the micropython firmware according to the documentation, an error is reported:

 / esp-adf/components/audio_stream/i2s_stream.c:142:28: error: 'i2s_stream_cfg_t' has no member named 'i2s_config'
  142 |     int index = i2s->config.i2s_config.dma_buf_count;

error: 'i2s_stream_cfg_t' has no member named 'i2s_config'
  143 |     uint8_t *buf = audio_calloc(1, i2s->config.i2s_config.dma_buf_len * 4);
                                                                         ^
.....

But vscode file browsing can be found

Compile Environment: macOS 14.2, Seek a solution