| 8 | class AudioBatch; // forward declaration — pointer only, no include needed |
| 9 | |
| 10 | struct DrawContext { |
| 11 | fl::u32 now; |
| 12 | fl::span<CRGB> leds; |
| 13 | u16 frame_time = 0; |
| 14 | float speed = 1.0f; |
| 15 | const AudioBatch *audio = nullptr; ///< Non-owning. Null when no audio. |
| 16 | DrawContext(fl::u32 now, fl::span<CRGB> leds, u16 frame_time = 0, |
| 17 | float speed = 1.0f, const AudioBatch *audio = nullptr) |
| 18 | : now(now), leds(leds), frame_time(frame_time), speed(speed), |
| 19 | audio(audio) {} |
| 20 | }; |
| 21 | |
| 22 | } // namespace fl |
no outgoing calls
no test coverage detected