This example is playing back a WAV file processed by an ALC.
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 headphones to the board.
- Insert a microSD card loaded with a WAV file 'test.wav' into board's card slot.
Load and run the example.
Two methods can implement volume setting with ALC.
- The one is through the function
i2s_alc_volume_set
ini2s_stream.h
. - The other is ALC as a independent element to be used.
If
USE_ALONE_ALC
is defined, the second method will be selected. If not, the first will be selected.