#pragma once #include #include class ParamMap; // Top-level packet handler — handles both single messages and bundles recursively. // WR-01 (iter-3) fix: returns true iff at least one whitelisted Backglow address // was dispatched into ParamMap (SetChannel or SetBrightness). Callers use this to // decide whether to reset silence-fade state (MarkOscArrived + g_fadingDown=false) // so non-backglow VRChat avatar traffic (GestureLeft, VelocityX, VRMode, etc.) // does not pin the silence-fade timer at 0 and defeat D-15. bool HandleOscPacket(const uint8_t* buf, std::size_t size, ParamMap& map);