This example shows how to use ESP-ADF multiple input pipeline to play back multiple files with down-mixer.
This example is will run on boards marked with green checkbox. Please remember to select the board in menuconfig as discussed is section Usage below.
Board Name | Getting Started | Chip | Compatible |
---|---|---|---|
ESP32-LyraT | |||
ESP32-LyraTD-MSC | |||
ESP32-LyraT-Mini | |||
ESP32-Korvo-DU1906 | |||
ESP32-S2-Kaluga-1 Kit |
Prepare the audio board:
- Connect speakers or headphone to the board.
- Insert a microSD card loaded with WAV files.
NUMBER_SOURCE_FILE
is number of WAV files. The name of WAV files are liketest1.wav
test2.wav
and so on. And the sample rate of those files are same asSAMPLERATE
.
Configure the example:
- Select compatible audio board in
menuconfig
>Audio HAL
.
Load and run the example:
- The first file starts playing automatically after power on.
- Once [Mode] button is pressed, the second file with be mixed with the first file playing.