You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rename static_delay_ms to output_delay_ms (and set_static_delay to set_output_delay) #154
The player role has static_delay_ms and the command set_static_delay. I still think the name is technically correct: it describes the static delay of the audio pipeline outside of what's controllable by the client (external speakers, amplifiers), as opposed to the delays the sync loop measures and adapts continuously.
But in practice it confuses users. For a user there is only one configurable delay, and it's the one called "static". They see a contradiction and ask why the delay is "static" when they can change it themselves.
Change
Rename to "output delay". It describes the same thing (the latency of the output chain past the audio port) without the word that reads as "unchangeable", and it matches what users know from TVs and AVRs (audio delay, lip-sync delay).
Wire changes, all in roles/player/v1.md:
client/state player object: static_delay_ms becomes output_delay_ms
server/command: the command enum value and the payload field static_delay_ms? become set_output_delay and output_delay_ms?
Prose changes, same file:
The bold "Static delay:" definition becomes "Output delay:"
The references in the lead-time note, the required_lead_time_ms rule, the timestamp translation text, and the two Playback Synchronization bullets
Keep the existing distinction in the definition: this value covers delay beyond the audio port only, not processing delays (DAC latency, buffers) that the client compensates itself. One clarifying phrase there prevents the new name from being read as covering those.
No other source file refers to the field.
Compatibility
This change breaks compatibility. It changes one client/state field, one command enum value, and one command payload field. There is no alias.
README.md is a generated file. Generate it again after the change.
Activity