Decode only audio playback on esp32 series of chips, where the features and footprint of esp-adf are not necessary.
This component is not intended to compete with esp-adf, a much more fully developed audio framework.
It does however have a number of advantages at the moment including:
esp-audio-player is a component on the Espressif component registry.
In your project run:
idf.py add-dependency chmorgan/esp-audio-player
to add the component dependency to the project's manifest file.
For MP3 support you'll need the esp-libhelix-mp3 component.
Unity tests are implemented in the test/ folder.
stateDiagram-v2
[*] --> Idle : new(), cb(IDLE)
Idle --> Playing : play(), cb(PLAYING)
Playing --> Paused : pause(), cb(PAUSE)
Paused --> Playing : resume(), cb(PLAYING)
Playing --> Playing : play(), cb(COMPLETED_PLAYING_NEXT)
Paused --> Idle : stop(), cb(IDLE)
Playing --> Idle : song complete, cb(IDLE)
[*] --> Shutdown : delete(), cb(SHUTDOWN)
Shutdown --> Idle : new(), cb(IDLE)
Note: Diagram shortens callbacks from AUDIO_PLAYER_EVENT_xxx to xxx, and functions from audio_player_xxx() to xxx(), for clarity.
The github workflow, .github/workflows/esp_upload_component.yml, pushes data to the espressif IDF component registry.
To push a new version:
The github workflow should run and automatically push to the IDF component registry.