-
-
Notifications
You must be signed in to change notification settings - Fork 309
-
I would love to see an example of dynamically resampling files and mixing them - maybe two mp3s, or if that is too tough for esp32, a wav and mp3.
I'm asking because even if I resample my files on PC, I still can't get them to mix properly. This is mainly due to me being a new to the world of microcontrollers and not really able to figure out the syntax from the included documentation (never used C before this project and documentation lacks the written explanation I'm used to).
The idea in pseudo-code:
file1
file2
get bit rate, sample rate and channel info from each file
find lower quality file
resample other file to lower quality file
mix two files together
play the mix
My end goal is to play 2 files (where at least one is an mp3) at the same time and when one finishes, let the other play without any interruptions (there's more to the project, I wrote a bit more about it in the intro to this discussion)
Maybe I'm asking too much out of ESP32, or (more likely) I'm thinking that this should be a much easier task than it is?
Any and all help welcome.
Thanks!
Beta Was this translation helpful? Give feedback.