1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-24 06:02:21 +01:00

Implement Media Player and I2S Media player (#3487)

This commit is contained in:
Jesse Hills
2022-06-02 17:00:17 +12:00
committed by GitHub
parent a922efeafa
commit 6221f6d47d
29 changed files with 1170 additions and 2 deletions

View File

@@ -62,6 +62,9 @@ class ComponentIterator {
#endif
#ifdef USE_LOCK
virtual bool on_lock(lock::Lock *a_lock) = 0;
#endif
#ifdef USE_MEDIA_PLAYER
virtual bool on_media_player(media_player::MediaPlayer *media_player);
#endif
virtual bool on_end();
@@ -110,6 +113,9 @@ class ComponentIterator {
#endif
#ifdef USE_LOCK
LOCK,
#endif
#ifdef USE_MEDIA_PLAYER
MEDIA_PLAYER,
#endif
MAX,
} state_{IteratorState::NONE};