This example is playing back a WAV file processed by an ALC.
ESP32-LyraT | ESP32-LyraTD-MSC | ESP32-LyraT-Mini |
---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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.