Repository navigation
docs(esp8266): document the shared Arduino-I2S audio-input path (#4948) - #4954
Merged
Merged
Conversation
ESP8266 has no dedicated audio-input engine; fl::AudioInput falls through to the shared Arduino-I2S backend (platforms/arduino/ audio_input.hpp) whenever <I2S.h> is present, which the ESP8266 core provides. Record that explicitly in the platform README (low-memory tier; shared-buffer limits; Null_Audio when <I2S.h> is absent) and add a pointer comment at the ESP8266 exclusion in audio_input.cpp.hpp. Closes the 'decide whether ESP8266 gets a real I2S audio-input engine' question as: no, document the limitation. Refs #4948, #4949.
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Member
Author
Memory check (
|
| master | this stack | Δ | |
|---|---|---|---|
| image_flash | 264,671 B | 264,667 B | -4 B |
| attributed flash | 203,252 B | 203,249 B | -3 B |
| RAM | 6,808 B | 6,808 B | 0 B |
No memory regression: the unused ESP8266 engines are dead-stripped (template selection + linker elimination), so naming none of them costs ~nothing, as intended (#2428).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4953 (#4947). Fixes #4948. Part of #4949.
Problem
No dedicated audio-input backend for ESP8266:
audio_input.cpp.hppexcludesESP8266 from the ESP32 engine (
FL_IS_ESP32 && !FL_IS_ESP8266) and falls backto the generic Arduino-I2S path.
Change (resolution: no dedicated engine; document the limitation)
src/platforms/esp/8266/README.md— an "Audio input" section: ESP8266 hasno dedicated engine;
fl::AudioInputuses the shared Arduino-I2S backend(
platforms/arduino/audio_input.hpp) when<I2S.h>is present (the ESP8266core ships it), no ESP32-style native engine is planned, and the low-memory
tier makes the shared sample buffer the limiting factor.
Null_Audiowhen<I2S.h>is absent.audio_input.cpp.hpp— a pointer comment at the ESP8266 exclusion.The acceptance explicitly allows this branch ("or an explicit note in the
platform README").
Test plan
bash compile esp8266 --examples Blinksucceeds (comment-only code change).