fatfs and http stream on the same pipeline

newhobby
Posts: 9
Joined: Sun Aug 19, 2018 4:36 am

fatfs and http stream on the same pipeline

Postby newhobby » Wed Sep 19, 2018 6:59 am

How do I setup a pipeline that would take either fatfs or http stream?
Similar to what esp_audio does?
I would use esp_audio, but for some reason, my mp3 files get the first second or so cut off. It starts playing them at about 1 second. I couldn't figure out why, so I went with pipeline directly.
The problem is that I want to stream both fatfs and http.
Do I need to create two different pipelines?

hallgrim
Posts: 1
Joined: Fri Nov 30, 2018 10:35 am

Re: fatfs and http stream on the same pipeline

Postby hallgrim » Fri Nov 30, 2018 10:44 am

Hi,

Very recently an example was added that does exactly this:
(Flexible Pipeline Example)[https://github.com/espressif/esp-adf/tr ... e_pipeline]

I have also noticed that if I call audio_element_set_uri on a fatfs stream that is paused, the file_pos is retained and it will continue playing in the middle of the new file. Perhaps this is what is happening with your missing 1 second?

Return to “ESP32 ADF”

Who is online

Users browsing this forum: No registered users and 2 guests