Search found 4 matches

by gyui21g
Fri Jun 07, 2024 7:24 am
Forum: ESP-IDF
Topic: SD card initializes fail with error_timeout
Replies: 0
Views: 308

SD card initializes fail with error_timeout

I use this example below provided by ESP official. esp-idf-project\sdspi\main\sd_card_example_main.c I want to use Micro_SD card with SPI communication. The problem is why I got failed at cmd ACMD41 ? The SD card always return busy(0x01 response) when the initialization process proceed to command AC...
by gyui21g
Sun Mar 31, 2024 2:20 pm
Forum: ESP-ADF
Topic: Speaker volume control
Replies: 4
Views: 11021

Re: Speaker volume control

When making i2s_stream_writer initialization, configure the i2s_cfg.use_alc=true. ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip"); int player_volume=0; i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT(); i2s_cfg.use_alc = true; i2s_cfg.volume = player_volume; i2s_cfg.type = AUD...
by gyui21g
Sun Mar 31, 2024 2:17 pm
Forum: ESP-ADF
Topic: Gapless/no gap playback music
Replies: 0
Views: 1765

Gapless/no gap playback music

:D I want to continually loop a 2 seconds soundtrack of auto engine to simulate the real engine running. I have tried the example "pipeline_loop_playback_without_gap". It uses two pipelines to input and decode the music alternatively, outputting to one i2s_stream_writer. However, that method cannot ...
by gyui21g
Thu Mar 21, 2024 3:53 am
Forum: ESP-ADF
Topic: How to understand audio_element_state, status, msg_cmd?
Replies: 0
Views: 2332

How to understand audio_element_state, status, msg_cmd?

Can anyone tell me what kind of message or state the dispatch will do with the audio element at each stage of action? For example, when the mp3_decoder element finishes decoding, what type of state and message will it send out to the pipeline? AEL_STATE_FINISHED? AEL_MSG_CMD_FINISH? AEL_STATUS_STATE...