You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
使用pipeline_spiffs_mp3和pipeline_wav_amr_sdcard例程时喇叭会有破音的
使用pipeline_spiffs_mp3和pipeline_wav_amr_sdcard例程时喇叭会有破音的 (AUD-5550)
Jul 18, 2024
我将这两个例程的主要部分写成了函数如下:
`
void playmp3(const char *url)
{
audio_pipeline_handle_t pipeline;
audio_element_handle_t spiffs_stream_reader, i2s_stream_writer, mp3_decoder;
// Initialize peripherals management
esp_periph_config_t periph_cfg = DEFAULT_ESP_PERIPH_SET_CONFIG();
esp_periph_set_handle_t set = esp_periph_set_init(&periph_cfg);
}
`
codec和spiffs我已经提前初始化和挂载,然后可以实现多次重复运行这个函数,但是每次运行的时候都会在刚开始有一个破音,不知道是哪里的原因,我已经将codec初始化在初始化时只允许一次了,但是每次调用这个函数还是有破音。
不知道有什么解决方案,或者使用方法,如果只在初始化第一次播放音频时有破音,后面播放和录音都没有声音这样还可以接受。
The text was updated successfully, but these errors were encountered: