Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 2.89 KB

File metadata and controls

31 lines (21 loc) · 2.89 KB

Playback Example of WAV File Processed by ALC

This example is playing back a WAV file processed by an ALC.

Compatibility

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 alt text ESP32 alt text
ESP32-LyraTD-MSC alt text ESP32 alt text
ESP32-LyraT-Mini alt text ESP32 alt text
ESP32-Korvo-DU1906 alt text ESP32 alt text
ESP32-S2-Kaluga-1 Kit alt text ESP32-S2 alt text

Usage

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.

Additional Information

Two methods can implement volume setting with ALC.

  1. The one is through the function i2s_alc_volume_set in i2s_stream.h.
  2. 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.