Skip to content

Conversation

@troyhacks
Copy link

I first made this change in WLED‑MM because I noticed that sometimes multiple audio sync packets would pile up in the buffer. That caused the LEDs to react a little behind the live audio, since older packets were being processed instead of the newest one.

On the ESP32‑P4, with its larger network buffers (or my enabling of larger buffer sizes), this buffering effect probably became more obvious, which is why switching to only decode the latest packet made such a difference.

In a real-time system, the latest packet is the right one - and working thru the backlog seems like the wrong thing to do.

I fixed this in MoonLight as well (leading to this patch) as it was very laggy until I made the change I'd done for WLED-MM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant