diff --git a/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c b/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c index e359fcf6e..60190c844 100644 --- a/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c +++ b/examples/player/pipeline_http_mp3/main/play_http_mp3_example.c @@ -70,7 +70,11 @@ void app_main(void) http_stream_reader = http_stream_init(&http_cfg); ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip"); +#if defined CONFIG_ESP32_C3_LYRA_V2_BOARD + i2s_stream_cfg_t i2s_cfg = I2S_STREAM_PDM_TX_CFG_DEFAULT(); +#else i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT(); +#endif i2s_cfg.type = AUDIO_STREAM_WRITER; i2s_stream_writer = i2s_stream_init(&i2s_cfg);