Skip to content

Clarify the values encoded in SoundSync packets #278

@jdtsmith

Description

@jdtsmith

Is your feature request related to a problem? Please describe.

To generate your own SoundSync packets separate from WLED, it would very valuable to know more about the units and values encoded in the packet, ideally in this description of the format.

Describe the solution you'd like

Add an entry-by-entry list which describes, for each member of the V2 audioSyncPacket struct:

  1. What the value means to WLED, i.e. how it is interpreted for sound reactive effects.
  2. What units the value is measured in (if applicable).
  3. What range of values it may possibly take.
  4. What range of values it typically takes, when produced by WLED.
  5. Any other notes (whether it is optional, etc.).

Describe alternatives you've considered

I've considered reverse engineering these values but would need debug console access to WLED UDP SoundSync received packets.

Additional context

One small confusion. The Wiki cautions:

this is a C language "struct". Due to padding performed by gcc, the actual package is slightly bigger

But it looks like this is an explicitly packed struct, with the gaps included verbatim. Perhaps this note of caution is vestigial?

Thanks for your work on WLED!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions